snmp checks

Subhendu Ghosh sghosh at sghosh.org
Thu May 5 18:36:26 CEST 2005


Which version of check_snmp are you using (check_snmp -V)
By default it uses snmp v1 (as seen on the CMD: output)
Also which version ons snmpget (snmpget -V)

-wv and -cv aren't supported any more in the plugins.

can you run "snmpget -c public -v 1 envmon-chal-2003 -o .1.3.6.1.2.1.1.1.0"

-sg

On Thu, 5 May 2005, HP Geeza wrote:

> How do i specify which version to use??
>
> The envmon-chal-2003 device definetly responds to snmp gets....becuase it is 
> working with the old netsaint config at the moment.
>
> The command which is run in netsaint is:
> command[check_temperature]=/usr/libexec/netsaint/check_snmp $HOSTADDRESS$ -o 
> .1.3.6.1.4.1.2012.1.1.1.4.2.0 -c public -e GT -wv $ARG1$ -cv $ARG2$ -l Temp. 
> -r F
>
>
>
>> From: Subhendu Ghosh <sghosh at sghosh.org>
>> To: HP Geeza <getbacktome3 at hotmail.com>
>> CC: nagios-users at lists.sourceforge.net
>> Subject: Re: [Nagios-users] snmp checks
>> Date: Thu, 5 May 2005 12:12:17 -0400 (EDT)
>> 
>> On Thu, 5 May 2005, HP Geeza wrote:
>> 
>>> 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
>>> 
>>> I have also tried running:
>>> check_snmp envmon-chal-2003 -o .1.3.6.1.4.1.2012.1.1.1.4.2.0 -C public -e 
>>> 4 -wv 75 -cv 80 -l Temp. -r F
>>> But get back:
>>> Temp. problem - No data received from host
>>> CMD: /usr/bin/snmpget -t 1 -r 4 -m ALL -v 1 -c public envmon-chal-2003:161 
>>> .1.3.6.1.4.1.2012.1.1.1.4.2.0
>>> 
>>> 
>>> Can somebody please tell me what i am doing wrong????
>> 
>> Looks like the device "envmon-chal-2003" is not responding to snmp queries.
>> 
>> Can you confirm this device is responding to snmp v1 with community 
>> "public"?
>>

-- 



-------------------------------------------------------
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=20
_______________________________________________
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