snmp checks

Marc Powell marc at ena.com
Thu May 5 18:16:34 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of HP Geeza
> Sent: Thursday, May 05, 2005 9:56 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] snmp checks
> 
> Hi
> 
> I am trying to read an SNMP value from a temperature probe in our
server
> using the commands below:  I am just trying to see if it'll work from
the
> command line before actually adding it as a server/check command etc.
> 
> /usr/local/nagios/libexec/check_snmp <temp probe name> -o
> .1.3.6.1.4.1.2012.1.1.1.4.2.0 -C public -wv 75 -cv 80 -l Temp: -r F
> However the answer i get back is:
> Temp: problem - No data received from host
> CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c public
envmon-chal-2003:161
> .1.3.6.1.4.1.2012.1.1.1.4.2.0

[snip]

> 
> Can somebody please tell me what i am doing wrong????

You're calling check_snmp wrong, at least the version that's included
with the 1.4 plugins and anything prior. I have no idea what '<temp
probe name>' is supposed to represent but you're missing a -H (host to
check) directive and -wv, -cv aren't valid; they should be -w and -c
respectively. Your main problem is that you didn't specify the host to
check though. Use check_snmp --help to determine the correct parameters.

--
Marc


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list