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

Ralph.Grothe at itdz-berlin.de Ralph.Grothe at itdz-berlin.de
Mon Dec 4 13:15:02 CET 2006


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
running
stand-alone, or by (x)inetd, depending on your nrpe
configuration.
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  -
============================================================
                                                  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_disk1]=/usr/local/nagios/libexec/check_local_disk!2
0%!10%!/
command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20
-c 10 -p /dev/hdb1
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs
-w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs
-w 150 -c 200 









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




More information about the Help mailing list