snmpwalk works, but check_snmp does not

Roger Roger at NagiosWiki.com
Wed Feb 6 00:45:00 CET 2008


I have an interesting issue when using the Nagios plugin to make an SNMP
query to a Netscreen 208.

I have two Nagios servers -- Gentoo and CentOS -- and one of the check_snmp
commands are not working on CentOS server (Nagios03) when I run it *exactly*
from the command line like I do in Gentoo (Nagios01)

e.g.

>From CentOS (does not work)

[root at nagios03 plugins]# pwd
/usr/lib/nagios/plugins
[root at nagios03 plugins]# ./check_snmp -C myPublicString -o
nsVpnMonP2State.0-l DC_VPN_Status -c 1: -H
10.0.11.9
DC_VPN_Status problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c myPublicString 10.0.11.9:161
nsVpnMonP2State.0

>From Gentoo (works)

nagios01 libexec # pwd
/usr/nagios/libexec
nagios01 libexec # ./check_snmp -C myPublicString -o nsVpnMonP2State.0 -l
DC_VPN_Status -c 1: -H 10.0.11.9
DC_VPN_Status OK - 1 | NETSCREEN-VPN-MON-MIB::nsVpnMonP2State.0=1;;;;

Normally, I'd think that it is an issue with the polled device not being
configured properly, but since I can 'snmpwalk' it from the CentOS
box in question, I'm not sure what to do.

Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080205/3cce77ef/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
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