[Nagiosplug-help] check_snmp warning and critical not resolving OID from MIB
James Michael Keller
jmkeller at houseofzen.org
Mon Jul 23 19:31:43 CEST 2007
All,
I'm having an issue with some new service commands to check APC UPS
status via the check_snmp plugin. When the plugin returns warning or
critical status it is not resolving the OID return from the MIB.
Without a warning or critical setting, it is when used on the command
line. However in the nagios status for the service check it is also
only showing 'OK - 2'.
It appears that $SERVICEOUTPUT$ is only getting set to '2' in all these
cases even when the plugin return is 'OK - onLine(2)' for the check_snmp
run without warning or critical settings.
The issue with this particular check is since nagios is only sending out
the numerical return code, it's very cryptic for an on-call engineer to
get a 'CRITICAL - UPS MODE - *3*' as the message text, when it should be
'CRITICAL - UPS MODE - onBattery(3)'
foobar at foo.bar:~$ /usr/lib/nagios/plugins/check_snmp -H 1.2.3.4 -C
public -o iso.3.6.1.4.1.318.1.1.1.4.1.1.0
SNMP OK - onLine(2) | PowerNet-MIB::upsBasicOutputStatus.0=onLine(2)
foobar at foo.bar:~$ /usr/lib/nagios/plugins/check_snmp -H 1.2.3.4 -C
public -o iso.3.6.1.4.1.318.1.1.1.4.1.1.0 -w 3
SNMP OK - 2 | PowerNet-MIB::upsBasicOutputStatus.0=2
foobar at foo.bar:~$ /usr/lib/nagios/plugins/check_snmp -H 1.2.3.4 -C
public -o iso.3.6.1.4.1.318.1.1.1.4.1.1.0 -w 3 -c 4
SNMP OK - 2 | PowerNet-MIB::upsBasicOutputStatus.0=2
foobar at foo.bar:~$
Thanks in advance.
--
James Michael Keller
More information about the Help
mailing list