Curious problem with check_snmp plugin
Posted: Thu Jun 28, 2012 9:19 pm
I have a curious problem with the check_snmp plugin.
When monitoring CPU load it returns the load with 0.00 precision:
However, as soon as you add warnings and critical the decimal precision changes to 0:
is there a way to preserve the precision?
When monitoring CPU load it returns the load with 0.00 precision:
Code: Select all
# ./check_snmp -H myhost -o UCD-SNMP-MIB::laLoad.1,UCD-SNMP-MIB:laLoad.2,UCD-SNMP-MIB::laLoad.3 -C public
SNMP OK - 3.40 5.57 5.00 | UCD-SNMP-MIB::laLoad.1=3.40 UCD-SNMP-MIB::laLoad.2=5.57 UCD-SNMP-MIB::laLoad.3=5.00Code: Select all
# ./check_snmp -H myhost -o UCD-SNMP-MIB::laLoad.1,UCD-SNMP-MIB:laLoad.2,UCD-SNMP-MIB::laLoad.3 -C public -w65,65,65 -c90,90,90
SNMP OK - 0 3 4 | UCD-SNMP-MIB::laLoad.1=0 UCD-SNMP-MIB::laLoad.2=3 UCD-SNMP-MIB::laLoad.3=4