Nagios nrpe on Remote host

Atul Kamat atulk at world2web.com
Wed Sep 29 07:56:39 CEST 2004


Hi!
  I installed and configured nagios to monitor our servers and it took me
a whole day thanx to an error in the documentation.
  I installed a utility called NRPE so that i cud execute commands on
remote machine.i setup xinetd and installed the plugins on the remote
host as well.Below are the excerpts of the:::


services.cfg file:

define service{
	use				generic-service		; Name of service template to use

	host_name			nyx
	service_description		/dev/hda1 Free Space
	is_volatile			0
	check_period			24x7
	max_check_attempts		3
	normal_check_interval		5
	retry_check_interval		1
	contact_groups			linux-admins
	notification_interval		120
	notification_period		24x7
	notification_options		w,u,c,r
	check_command			check_nrpe!check_disk1
	}



checkcommands.cfg file::

define command{
        command_name    check_nrpe
        command_line    usr/local/nagios/libexec/check_nrpe  $HOSTADDRESS$
-c $ARG1$
        }


nrpe.cfg file on the remote machine::
#command i want to execute
command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p
/dev/hda1

could neone tell me what`s going wrong.
Nagios display the disk space data of the local machine rather than the
remote machine.
Thanx,
Warm Regards

Atul Kamat
Linux Network Engineer,
World2Web Soft Technologies Private Ltd,
26, Koramangala Industrial Layout,
Bangalore - 560095,
INDIA
Phone :98860 24705
e-mail: atulk at world2web.com


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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