[Nagiosplug-help] RE: Problems with check_snmp command

Hammerl, Harald (Harald) hhammerl at lucent.com
Thu Jan 22 01:16:00 CET 2004


>  -----Original Message-----
> From: 	Hammerl, Harald (Harald)  
> Sent:	Mittwoch, 21. Januar 2004 17:04
> To:	'nagios-users at lists.sourceforge.net'
> Subject:	Problems with check_snmp command
> 
> Hi to all,
> 
> I've installed nagios for monitoring a networks with routers and switches.
> I try to use the check_snmp plugin to get information about system uptime.
> In the nagios service overview I only get a error message (Service Check
> Timed Out) 
> Net:SNMP is installed on my server. 
> 
> If I try the OID with snmpget - 192.168.170.46 public .1.3.6.1.2.1.1.3.0 I
> get the correct output.
> 
> 
> How I have configured:
> 
> ##Service definition:
> check_command			check_snmp_uptime!public
> 
> ##checkcommand
> # 'check_snmp_uptime' command definition
> define command{
> 	command_name	check_snmp_uptime
> 	command_line	$USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o
> .1.3.6.1.2.1.1.3.0 --delimiter=')' -l "Uptime is"
> 	}
> ##command
> command[check_netapp_uptime]=/usr/lib/nagios/plugins/check_snmp -H
> $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.2.1.1.3.0 --delimiter=')' -l "Uptime
> is"
> 
> If I use just a simple check command to check systemDescr. the cgi hangs
> /usr/lib/nagios/plugins # ./check_snmp -H 192.168.170.197 -o
> .1.3.6.1.2.1.1.1.0
> 
> 
> 
> 
> I've installed the following versions on my machine
> 
> Nagios:		1.1-78
> Nagios-plugins:	1.3.1-77
> Net::SNMP:	4.1.0-50
> 
> 
> 
> What is wrong in my configuration. Nagios works fine so far.
> 
> Regards
> 
> Harald Hammerl 
> 




More information about the Help mailing list