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.