I have an interesting issue when using the Nagios plugin to make an SNMP query to a Netscreen 208. <br><br>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)<br>
<br>e.g. <br><br>From CentOS (does not work)<br><br>[root@nagios03 plugins]# pwd<br>/usr/lib/nagios/plugins<br>[root@nagios03 plugins]# ./check_snmp -C  myPublicString -o nsVpnMonP2State.0 -l DC_VPN_Status -c 1: -H <a href="http://10.0.11.9">10.0.11.9</a><br>
DC_VPN_Status problem - No data received from host<br>CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c myPublicString <a href="http://10.0.11.9:161">10.0.11.9:161</a>  nsVpnMonP2State.0<br><br>From Gentoo (works)<br> <br>nagios01 libexec # pwd<br>
/usr/nagios/libexec<br>nagios01 libexec # ./check_snmp -C myPublicString -o nsVpnMonP2State.0 -l DC_VPN_Status -c 1: -H <a href="http://10.0.11.9">10.0.11.9</a><br>DC_VPN_Status OK - 1 | NETSCREEN-VPN-MON-MIB::nsVpnMonP2State.0=1;;;;<br>
<br>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.<br><br>Any suggestions?<br>