My upgrade to version 1.6 has gone smoothly except for one issue.
I have one item that is a temperature value (in Celsius) , and it is returned as a string. I need to convert to float to support negative numbers.
Example:
For some reason, and it seems to be random, the value gets processed as 10, 100, 1000 or even 1B times higher. I have temperature values showing as:
366 C
43.04 KC
43.98 GC
Clearly, these are wrong, and the triggers are continuous, and now the trend data is worthless.
I tried looking at checks_snmp.c, but nothing immediately jumped out at me besides the second parameter to strtod, which should be (char **) NULL, not 0. Could this be the problem?
I have one item that is a temperature value (in Celsius) , and it is returned as a string. I need to convert to float to support negative numbers.
Example:
Code:
SNMPv2-SMI::enterprises.XXX.3.3.16.2.1.3.29.0 = STRING: "36"
366 C
43.04 KC
43.98 GC
Clearly, these are wrong, and the triggers are continuous, and now the trend data is worthless.
I tried looking at checks_snmp.c, but nothing immediately jumped out at me besides the second parameter to strtod, which should be (char **) NULL, not 0. Could this be the problem?
Comment