[Nagiosplug-devel] problem with check_snmp on Linux with snmpget 5.0.3

Mayhew, Andrew amayhew at verisign.com
Mon Oct 21 15:46:02 CEST 2002


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




More information about the Devel mailing list