Page 1 of 1

check_snmp Returning Definitions

Posted: Mon Oct 25, 2010 10:13 am
by MadAsToast
Hi all,

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:

Code: Select all

./check_snmp -H xxx.xxx.xxx.xxx -C public -o .1.3.6.1.2.1.25.3.2.1.5.1
Which returns:

Code: Select all

SNMP OK - 2 | iso.3.6.1.2.1.25.3.2.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:

Code: Select all

./check_snmp -H xxx.xxx.xxx.xxx -C public -o .1.3.6.1.2.1.25.3.2.1.5.1 -m HOST-RESOURCES-MIB
I have tried expanding the MIB to include hrDeviceStatus after the MIB however nothing changes the result I get:

Code: Select all

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.

TIA

MadAsToast