[Nagiosplug-help] check_snmp help

Ric Moseley ricmoe at gmail.com
Tue Jan 31 13:18:01 CET 2006


When i use 'check_snmp' against a temperate probe in my datacenter i get the
following output.  It works but the problem is that the check command
returns the 'snmpget' command it issued and nagios thinks that is the output
from the plugin so from the web interface the output is
'/usr/local/bin/snmpget........................' and not 'Temperature OK -
17 Degrees | iso.3.6.1.4.1.318.1.1.2.1.1.0=17;;;; '

Anyone know how to fix this?

Below is a command line execution of the plugin.  You can see what I
mean....

Thanks.

Ric.

[root at server:/usr/local/nagios/libexec]#./check_snmp -t 5 -v 2c -C PUBLIC -o
1.3.6.1.4.1.318.1.1.2.1.1.0 -H 192.168.69.253 -w 18 -c 20 -v -l Temperature
-u Degrees

/usr/local/bin/snmpget -t 5 -r 5 -m '' -v 1 -c PUBLIC 192.168.69.253:161
1.3.6.1.4.1.318.1.1.2.1.1.0
iso.3.6.1.4.1.318.1.1.2.1.1.0 = Gauge32: 17

Temperature OK - 17 Degrees | iso.3.6.1.4.1.318.1.1.2.1.1.0=17;;;;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20060131/a74e2837/attachment.html>


More information about the Help mailing list