# Service type: Datacenter Temp # output:OK! Temp is good at 70.8750 # perfdata:temp=71.0000;75;78;0;100 /perfdata:.*?([\d]+\.[\d]+)\;([\d]+)\;([\d]+).*/ and push @s, [temp, [ degreesF, GAUGE, $1 ]]; # uncomment these lines if you want to see warn and # crit in your graph. Don't forget to delete the # trailing ]; above! # [ warn, GAUGE, $2 ], # [ crit, GAUGE, $3 ]]; # Service type: Datacenter Humidity # output:OK: Humidity is good at 45% # perfdata:humidity=45;60;70;40;30;0;100 /perfdata:.*humidity=(\d{1,3});(\d{1,3});(\d{1,3});(\d{1,3});(\d{1,3});(\d{1,3});(\d{1,3}).*/ and push @s, [humidity, [ humidityPct, GAUGE, $1 ], [ warnU, GAUGE, $2 ], [ critU, GAUGE, $3 ], [ warnl, GAUGE, $4 ], [ critl, GAUGE, $5 ]];