<br><tt><font size=2>nagios-users-bounces@lists.sourceforge.net wrote on
02/12/2008 10:06:16 AM:<br>
<br>
> <br>
> <br>
> > -----Original Message-----<br>
> > From: nagios-users-bounces@lists.sourceforge.net [</font></tt><a href="mailto:nagios-users-"><tt><font size=2>mailto:nagios-users-</font></tt></a><tt><font size=2><br>
> > bounces@lists.sourceforge.net] On Behalf Of mark.potter@academy.com<br>
> > Sent: Tuesday, February 12, 2008 9:39 AM<br>
> > To: nagios-users@lists.sourceforge.net<br>
> > Subject: [Nagios-users] check_snmp issue<br>
> > <br>
> > <br>
> > Thank you all for the comments on the parenting issue I posted<br>
> yesterday.<br>
> > We have come up with a much easier solution than had been proposed.<br>
> <br>
> What did you end up with?</font></tt>
<br>
<br><tt><font size=2>host -> gateway -> router</font></tt>
<br>
<br><tt><font size=2>Which is actually not much of a change from how we
are already doing it.</font></tt>
<br><tt><font size=2><br>
>  <br>
> > I am now having an issue with check_snmp. I have used check_snmp
to<br>
> > monitor this exact service in the past on other Nagios hosts
and am<br>
> using<br>
> > other snmp checks as well from the current host. Here is the
problem:<br>
> > <br>
> > nagios@ulapnag01:/usr/local/nagios/libexec> /check_snmp -H
peapgse01<br>
> -o<br>
> > GSA-MIB::crawlRunning.0 -C public -m GSA-MIB -P 2c -d "="<br>
> > SNMP problem - No data received from host<br>
> > CMD: /usr/bin/snmpget -t 1 -r 5 -m GSA-MIB -v 2c -c public<br>
> peapgse01:161<br>
> > GSA-MIB::crawlRunning.0<br>
> > <br>
> > But if I run the command it shows, exactly:<br>
> > <br>
> > nagios@ulapnag01:/usr/local/nagios/libexec> /usr/bin/snmpget
-t 1 -r 5<br>
> -m<br>
> > GSA-MIB -v 2c -c public peapgse01:161  GSA-MIB::crawlRunning.0<br>
> > GSA-MIB::crawlRunning.0 = INTEGER: Running(1)<br>
> <br>
> Not a direct answer but to troubleshoot I'd run check_snmp in verbose<br>
> mode (-v). That will cause it to print the output it receives from<br>
> snmpget. You'll at least know then if the problem is with the call
to<br>
> snmpget or the parsing of its output. I'd also run 'strace -Ffs512<br>
> ./check_snmp ...' and look for the sendto and recvfrom lines which
would<br>
> be the communication with the remote snmp agent just to verify that<br>
> there is data flowing both ways. I'd also drop the -d "="
since that's<br>
> the default anyway. I'd try using the numeric OID instead of<br>
> GSA-MIB::crawlRunning.0 to eliminate MIB loading/parsing issues. And<br>
> finally, I'd use IP or FQDN for the hostname to eliminate resolution<br>
> issues.<br>
> <br>
> --<br>
> Marc<br>
</font></tt>
<br><tt><font size=2>Sometimes you can't see the forest for the trees.
It was an MIB issue. Using the numeric OID gets the result I need. Thank
you for the advice. Taking it step by step solved my issue:</font></tt>
<br><tt><font size=2>nagios@ulapnag01:/usr/local/nagios/libexec> ./check_snmp
-v -H peapgse01 -o .1.3.6.1.4.1.11129.1.1.1.0 -C public -m GSA-MIB -P 2c</font></tt>
<br><tt><font size=2>/usr/bin/snmpget -t 1 -r 5 -m GSA-MIB -v 2c -c public
peapgse01:161  .1.3.6.1.4.1.11129.1.1.1.0</font></tt>
<br><tt><font size=2>iso.3.6.1.4.1.11129.1.1.1.0 = INTEGER: 1</font></tt>
<br>
<br><tt><font size=2>SNMP OK - 1 | iso.3.6.1.4.1.11129.1.1.1.0=1</font></tt>
<br>
<br><tt><font size=2>Would be nice to use the MIB but totally unnecessary
and I don't feel like bothering to troubleshoot it.</font></tt>