[Nagiosplug-help] check_snmp help
Robert Lowe
Robert.H.Lowe at lawrence.edu
Tue Jan 31 13:22:29 CET 2006
Ric Moseley wrote:
> 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?
From my reading of the help file, you need to specify -P or --protocol,
and *not* -v which you are thinking is version, but it's verbose.
-Robert
> 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
> <http://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
> <http://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;;;;
More information about the Help
mailing list