Hoping someone can help.
I am using check_snmp to return values from a Colour Printer (in this example, however it is relevant to UPS's and potentially many devices) the check_snmp is returning a numeric value no problems, however I am struggling getting it to return what that value means, ie printer status I am using the following command:
./check_snmp -H xxx.xxx.xxx.xxx -C public -o .220.127.116.11.18.104.22.168.22.214.171.124
SNMP OK - 2 | iso.126.96.36.199.188.8.131.52.1.5.1=2
So after a fair amount of research I find that using the -m should force it to return a more relevant status the command I am using is:
./check_snmp -H xxx.xxx.xxx.xxx -C public -o .184.108.40.206.220.127.116.11.18.104.22.168 -m HOST-RESOURCES-MIB
I have tried expanding the MIB to include hrDeviceStatus after the MIB however nothing changes the result I get:
SNMP OK - 2 | HOST-RESOURCES-MIB::hrDeviceStatus.1=2
It's probably comething I'm doing wrong, but I would appreciate any input or comments.