<div class="gmail_quote">On Feb 5, 2008 5:40 PM, Patrick Morris <<a href="mailto:patrick.morris@hp.com">patrick.morris@hp.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Roger!<br><div class="Ih2E3d"><br>On Tue, 05 Feb 2008, Roger wrote:<br><br>> From CentOS (does not work)<br>><br>> [root@nagios03 plugins]# pwd<br>> /usr/lib/nagios/plugins<br></div>> [root@nagios03 plugins]# ./check_snmp -C myPublicString -o nsVpnMonP2State.0 -l DC_VPN_Status -c 1: -H <a href="http://10.0.11.9" target="_blank">10.0.11.9</a><<a href="http://10.0.11.9" target="_blank">http://10.0.11.9</a>><br>
<div class="Ih2E3d">> DC_VPN_Status problem - No data received from host<br></div>> CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c myPublicString <a href="http://10.0.11.9:161" target="_blank">10.0.11.9:161</a><<a href="http://10.0.11.9:161" target="_blank">http://10.0.11.9:161</a>> nsVpnMonP2State.0<br>
<div class="Ih2E3d">><br>> From Gentoo (works)<br>><br>> nagios01 libexec # pwd<br>> /usr/nagios/libexec<br></div>> nagios01 libexec # ./check_snmp -C myPublicString -o nsVpnMonP2State.0 -l DC_VPN_Status -c 1: -H <a href="http://10.0.11.9" target="_blank">10.0.11.9</a><<a href="http://10.0.11.9" target="_blank">http://10.0.11.9</a>><br>
<div class="Ih2E3d">> 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></div>Two things:<br><br>First, never manually check a plugin as root, as you often won't get the<br>same results you would as the user Nagios runs as.  That probably won't<br>help in this case, but it will almost certainly bite you in the ass in<br>
the future.<br><br>Second, you've got the snmpget command being sent to the box... what<br>happens when you run that (again, use the user Nagios runs as)?<br><br>When you do an snmpwalk, are you able to see the nsVpnMonP2State OID?<br>
</blockquote></div><br><div>The problem actually turned out to be the fact that that OID-MIB association wasn't on that box.  So I scp'd the contents of the /etc/snmp folder to the new box, and everything works perfectly now.<br>
</div><div><br class="webkit-block-placeholder"></div><div>(Thank you for your time in responding to my email, Patrick.)</div>