[Nagiosplug-devel] problem with check_snmp on Linux with snmp get 5.0.3

Mayhew, Andrew amayhew at verisign.com
Tue Oct 22 14:16:03 CEST 2002


Same results after building from the CVS check out this afternoon.  See
below:

$ ./check_snmp --versioncheck_snmp (nagios-plugins 1.3.0-alpha1) 1.8
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

$ ./check_snmp -H 172.16.74.24 -o sysUpTime.0 -w 600:1 -C community -u Hours
-l SystemUpTime
SystemUpTime problem - No data recieved from host
CMD: /usr/local/bin/snmpget -m ALL -v 2c 172.16.74.24:161 -c community
sysUpTime.0

$ /usr/local/bin/snmpget -m ALL -v 2c 172.16.74.24 -c community sysUpTime.0
SNMPv2-MIB::sysUpTime.0 4:2:57:05.91

I did make one line change to the actual command line so that it would be
syntatically correct for net-snmp 5.0.3. Otherwise, my source is exactly as
it appears in the CVS tree.  Anyone else see this or have a fix?

--Andy Mayhew

> -----Original Message-----
> From: Karl DeBisschop [mailto:karl at debisschop.net]
> Sent: Tuesday, October 22, 2002 1:30 AM
> To: Mayhew, Andrew
> Cc: nagiosplug-devel at lists.sourceforge.net
> Subject: Re: [Nagiosplug-devel] problem with check_snmp on Linux with
> snmpget 5.0.3
> 
> 
> On Mon, 2002-10-21 at 18:45, Mayhew, Andrew wrote:
> > Anyone else seeing this sort of error?  check_snmp always 
> reports that there
> > is "no data recieved [sic] from host".  If you run the 
> snmpget command it
> > claims to be executing it works.  Seems to be a problem 
> with the "ptr =
> > strtr(ptr, delimiter);" moving the pointer past the output 
> from snmpget.
> > 
> > $ ./check_snmp --version
> > check_snmp (nagios-plugins 1.3.0-alpha1) 1.1.1.1
> > The nagios plugins come with ABSOLUTELY NO WARRANTY. You 
> may redistribute
> > copies of the plugins under the terms of the GNU General 
> Public License.
> > For more information about these matters, see the file 
> named COPYING.
> > 
> > $ ./check_snmp -H 172.16.74.24 -o sysUpTime.0 -w 600:1 -C 
> community -u Hours
> > -l SystemUpTime
> > SystemUpTime problem - No data recieved from host
> > CMD: /usr/local/bin/snmpget -m ALL -v 2c -c community 172.16.74.24
> > sysUpTime.0
> > $ /usr/local/bin/snmpget -m ALL -v 2c -c community 
> 172.16.74.24 sysUpTime.0
> > SNMPv2-MIB::sysUpTime.0 3:4:19:03.21
> > 
> > Any help would be appreciated.
> > --Andy Mayhew
> 
> Can I suggect the current CVS? We're at 1.8, and IIRC one of 
> the chnages
> I made was for that general sort of behaviour.
> 
> -- 
> Karl
> 




More information about the Devel mailing list