Problem with check_snmp

Mark D. Valpreda mark at insynclh.com
Tue Jul 8 20:06:56 CEST 2003


Thanks for everyone's help. It turned out to be an OLD version of
snmpget on my RH6.1 box.

-----Original Message-----
From: Karl DeBisschop [mailto:karl at debisschop.net] 
Sent: Monday, July 07, 2003 9:21 PM
To: Mark D. Valpreda
Cc: Nagios Users
Subject: Re: [Nagios-users] Problem with check_snmp

On Mon, 2003-07-07 at 19:13, Mark D. Valpreda wrote:
> I am running into an issue with check_snmp that has become quite
> frustrating. 
> 
> I am trying to monitor temperature on an APC Symmetra. The problem I
am
> running into is with the check_snmp module. I am testing the commands
> outside of Nagios for now and this is the command I planned on using: 
> check_snmp -v -H X.X.X.X -o .1.3.6.1.4.1.318.1.1.2.1.1.0 -C public
> 
> The command that is created from that is:
> snmpget -m ALL -v 1 -c public X.X.X.X:161 .1.3.6.1.4.1.318.1.1.2.1.1.0

> And that command is just wrong. Near as I can tell, the command should
> be: 
> snmpget -v 1 X.X.X.X public .1.3.6.1.4.1.318.1.1.2.1.1.0

I do not believe '-m ALL' is wrong. You can determine for your self with
'man snmpcmd'

> Adding "-m ALL" gives me a response, but "Did not find 'iso' in module
> SNMPv2-SMI (/usr/share/snmp/mibs/SNMPv2-CONF.txt)" crops up.
> Explicitly defining port 161 causes "snmpget: Unknown host
> (157.185.1.70:161)"

I think that means you have a bad MIB somewhere, or you are missing 
an important MIB in your MIB search path. Use:

check_snmp -v -H X.X.X.X -o .1.3.6.1.4.1.318.1.1.2.1.1.0 -C public -m ''

--
Karl



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
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