[Nagiosplug-help] NRPE + Check disk

tom.welsh at bt.com tom.welsh at bt.com
Wed Oct 4 15:37:30 CEST 2006


Hey List,


Current setup.

Nagios 2.5  - Standard install to /usr/local/nagios/*
Nagios Plugins 1.4.3 - Standard install to /usr/local/nagios/libexec
SUSE Linux Enterprise Server 9 sp2 - Disks partitioned with LVM ( yes I have taken that into account in my check command I think)

I am attempting to check disks on remote machines using NRPE. This works fine but I do net get the actual disk free figures displayed in the Service Detail view off the host. All I get displayed is "DISK OK - free space:"

When I look at actual Service page I see that the Performance data shows the Disk free figures

	Service State Information
	Current Status:	  OK    
	Status Information:	DISK OK - free space:	
	Performance Data:	/=10840MB;11468;12901;-9223372036854775808;14335	
   
Here is the relevant sections from my configs.

>From NRPE config file on monitored host

/usr/local/etc/nrpe.cfg

	pid_file=/var/run/nrpe.pid
	server_port=5666
	server_address=xxx.xxx.xxx.xxx
	dont_blame_nrpe=0
	nrpe_user=nagios
	nrpe_group=nagios
	debug=1
	command_timeout=60
	command[check_disk1]=/usr/local/nagios/libexec/check_disk -e -l -X iso9660 -X proc -x sysv -X tempfs -w 20% -c 10% -p /


>From "checkcommands.cfg" on monitoring host

	# ' check systems using nrpe to check remote / file system size
	define command{
	        command_name    check_nrpe_root
	        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$


>From "services.cfg" on monitoring host

	# Free Space on remote system / partition
	define service{
	        use                             	generic-service
	        host_name                       	h4oiap
	        service_description             	Free Disk Space /
	        is_volatile                     	0
	        check_period                    	24x7
	        max_check_attempts              3
	        normal_check_interval           	5
	        retry_check_interval            	1
	        contact_groups                  	vsu-p
	        notification_interval           	120
	        notification_period             	24x7
	        notification_options            	w,c,r
	        check_command                   	check_nrpe_root!check_disk1


When I execute the command as the nagios user on both the monitored and monitoring boxes I get the output below. 
As you can see the Monitored host reports the space free on the disk. Cool that's what I want thanks.

>From Monitored host

nagios at h4oiap:/usr/local/nagios/libexec> /usr/local/nagios/libexec/check_disk -l -X iso9660 -X proc -x sysv -X tempfs -w 20% -c 10% -p /

DISK OK - free space: / 3492 MB (24% inode=nan%);| /=10843MB;11468;12901;-9223372036854775808;14335

On the monitoring host we do not seem to pick up the free space. Have I not escaped something in my configs.

>From Monitoring host

	nagios at usel:/usr/local/nagios/etc> /usr/local/nagios/libexec/check_nrpe -H 132.146.185.13 -p 5666 -c check_disk1

	DISK OK - free space:| /=10842MB;11468;12901;-9223372036854775808;14335

I know I've missed something stupid and cant spot it. I'm hopefull one off you eagle eyed blighters might spot it.


All help gratefully received.

Tom








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20061004/e62f6ae0/attachment.html>


More information about the Help mailing list