check_snmp assistance request

Robert Nelson rnelson at windchannel.com
Wed Nov 10 07:43:34 CET 2004


Jamie,

check_snmp requires a -C for the community string, snmpwalk uses -c for the community string. I think your checkcommand needs adjusted and otherwise looks okay.

Rob Nelson


-----Original Message-----
From:	Jamie Roughan [mailto:jamie.roughan at mizuho-sc.com]
Sent:	Wed 11/10/2004 1:09 AM
To:	nagios-users at lists.sourceforge.net
Cc:	
Subject:	[Nagios-users] check_snmp assistance request

I am attempting to integrate snmp functionality with Nagios and have aleady
installed
nrpe & nsca and have also allowed permissioning for writing to the external
command,
<command_file>.  Also, UCD-snmp application is installed on Nagios
Monitoring Box.

I am able to start nagios without error; however, the snmp checking is not
functioning as expected.
Does anyone have  examples of  commands.cfg & service.cfg willing to share.
thankyou in advance.

general checklist---
- ./check_snmp -h  #read contents
-snmpget -c public x.x.x.x  system.sysDescr.0  # returns target systemname
-relevant config files

- commands.cfg
#check_snmp command definition
define command{
command_name	check_snmp
command_line	/usr/local/nagios/libexec/check_snmp
		-H $HOSTADDRESS$ -c $ARG1$ -o $ARG2$
	}

#check nrpe command
define command{
	command_name	check_nrpe
	command_line		/usr/local/nagios/libexec/check_nrpe
				-H $HOSTADDRESS$ -p ARG1$
	}

-service.cfg
define service{
	use				generic-service
	host_name			targetname
	service-description		SNMP
	is_volatile			0
	check_period			24x7
	max_check_attempts		3
	normal_check_interval		5
	retry_check_interval		1
	contact_groups		securityadmins
	notification_interval		120
	notification_period		24x7
	notification_options		w,u,c,r
	check_command		check_snmp
	{

I suspect that the snmp config in either / both the services.cfg &
checkcommands.cfg is close but not quite correct. Any useful suggestions
are welcome.

??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list