check_snmp issue
Posted: Tue Sep 06, 2016 5:14 pm
I am having an issue I can't seem to solve using check_snmp v1.4.16
Using it without the -w warning or -c critical issues, it returns data as expected:
Notice the "psi" unit in the output above.
If I add the -w and - c I get:
Notice there is no "psi" this time.
I verified that the device is returning the "psi" with an snmpget:
Has anyone experienced this behavior from check_snmp. If so, I cannot find it in this forum nor with Google. I've tried just about everything I can think of with options/switches so I'm seeking new input.
Thanks in advance for your time.
Using it without the -w warning or -c critical issues, it returns data as expected:
Code: Select all
# ./check_snmp -H 192.168.0.214 -P 2c -c public -m /usr/share/snmp/mibs/MyMIB.txt -o DIFFPRES -l DIFFPRES
SNMP OK - DIFFPRES 10.56 psi | DIFFPRES= 10.56If I add the -w and - c I get:
Code: Select all
# ./check_snmp -H 192.168.0.214 -P 2c -c public -m /usr/share/snmp/mibs/MyMIB.txt -o DIFFPRES -l DIFFPRES -w 18 -c 20
SNMP OK - DIFFPRES 10.69 | DIFFPRES=10.69I verified that the device is returning the "psi" with an snmpget:
Code: Select all
# snmpget -v 2c -c public -m /usr/share/snmp/mibs/MyMIB.txt 192.168.0.214 DIFFPRES
Sbtfp3::DIFFPRES = STRING: 10.9 psi
Thanks in advance for your time.