Perf Data not graphed

Hi all.
I modified nagios plugin to have it working with librenms, specifically have working graphs. When checking it with ./check-servisec.php -d (debug mode) I can see that it gets the perf data to graph. But when I check graphs for this service, nothing is graphed and the value is -nan. What am I doing wrong in output of the plugin? Here is the debug:

Request: ‘/usr/lib/nagios/plugins/check_temperature_digitemp.sh’ ‘-H’ ‘localhost’ ‘-w’ ‘28.00’ ‘-c’ ‘31.00’ ‘-s’ ‘1’ ‘-p’
Perf Data - DS: TEMP, Value: 18.06, UOM: c
Response: OK Temperatura - : 18.06 C
Service DS: {
“TEMP”: “c”
}
RRD[last localhost/services-17.rrd --daemon unix:/var/run/rrdcached.sock]
RRD[update localhost/services-17.rrd N:18.06 --daemon unix:/var/run/rrdcached.sock]
./check-services.php 2022-01-17 13:22:04 - 3 services polled in 1.454 secs

librenms@nad:~$ /usr/lib/nagios/plugins/check_temperature_digitemp.sh -w 28.00 -c 31.00 -p
OK Temperatura - : 17.44 c |TEMP=17.44c;28.00;31.00

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.