Problem with check_snmp

Karl DeBisschop karl at debisschop.net
Tue Jul 8 06:20:46 CEST 2003


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: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
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