check_snmp assistance request

Jamie Roughan jamie.roughan at mizuho-sc.com
Wed Nov 10 07:09:28 CET 2004


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





More information about the Users mailing list