[Nagiosplug-help] how can i check root partition space of aremotehost

Doctor Doo notifymesam at yahoo.com
Mon Dec 4 13:28:35 CET 2006

dear Ralph,
  My  check_disk2 command only outputs that - "the disk is /dev/hdb1 OK" but it does not show any details. actually, i want to know the free space of the "/ " partition of my remote host. 
  I would like to know the little modification which is required to make "check_disk1" or "check_disk2 " to show the status of the root partition of the remote host.
  please help
  Towfique Hasan
Ralph.Grothe at itdz-berlin.de wrote:
  I am not quite sure,
but I think the check commands in nrpe.cfg must refer to actual
executables on the nrpe host, i.e. where the nrpe daemon is
stand-alone, or by (x)inetd, depending on your nrpe
So if you do an

ls /usr/local/nagios/libexec/check_local_disk

would most likely yield a "no such file or directory" error.

But doesn't your check_disk2 command definition, which looks ok,
satisfy your needs?

-----Original Message-----
From: nagiosplug-help-bounces at lists.sourceforge.net
[mailto:nagiosplug-help-bounces at lists.sourceforge.net]On Behalf
Of Doctor Doo
Sent: Monday, December 04, 2006 12:57 PM
To: Nagios Lifeline
Subject: Re: [Nagiosplug-help] how can i check root partition
space of aremotehost

Ralph.Grothe at itdz-berlin.de wrote: 
> i have nrpe add on on a remote host. its configuration is ok. i
can check its disk status.
> But I cannot monitor the root partition of the remote host.

I think it would be helpful if you posted the command definition
for the check_disk from
the nrpe.cfg on your to be checked host.

I have made a little modification of the default configuration
file. i have copied "check_local_disk" command from the NAGIOS
host to the remote host's nrpe.cfg -

# The following examples use hardcoded command arguments...

command[check_users]=/usr/local/nagios/libexec/check_users -w 5
-c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w
15,10,5 -c 30,25,20
command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20
-c 10 -p /dev/hdb1
-w 5 -c 10 -s Z
-w 150 -c 200 

Need a quick answer? Get one in minutes from people who know. Ask
your question on Yahoo! Answers.

Access over 1 million songs - Yahoo! Music Unlimited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20061204/017fee75/attachment.html>

More information about the Help mailing list