check_snmp Returning Definitions

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
MadAsToast
Posts: 1
Joined: Mon Oct 25, 2010 10:10 am

check_snmp Returning Definitions

Post 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
Locked