nrpe check_disk

joe ritter glestadt4 at yahoo.com
Mon Feb 14 17:23:49 CET 2005


Hello,
I am usig nagios with check_nrpe to monitor remote
hosts running the nrpe daemon. I anm having difficulty
with the plugin check_disk. If I run the the command
by hand on the nagios hosts all is well:

 /usr/lib/nagios/plugins/check_nrpe -H 192.168.120.11
-c check_disk -a  20%   10%  /dev/cciss/c0d0p1
DISK OK [67334 kB (71%) free on /dev/cciss/c0d0p1]

If run the command on the remote hosts all look fine
as well:

 /usr/lib/nagios/plugins/check_disk -w 20% -c 10%
/dev/cciss/c0d0p1
DISK OK [67334 kB (71%) free on /dev/cciss/c0d0p1]


However when the command is run by the nagios daemon
on the moniting host the I recieve the follwoing error
in the web interface:

Warning threshold must be integer or percentage! 

Here are the relevant defines I have set up for this
plugin:

nrpe.cfg on remote host:

command[check_disk]=/usr/lib/nagios/plugins/check_disk
  -w $ARG1$  -c $ARG2$  -
p $ARG3$

service.cfg on nagios host:

define service{
         use                    generic-service
         check_period           24x7
         max_check_attempts     15
         normal_check_interval  5
         retry_check_interval   1
         hostgroup_name         web_servers
         contact_groups         devs
         service_description    partition_usage2
         check_command         
check_nrpe!check_disk!20%!10%!/

If someone could shed some light on where I am going
wrong I would greatly appreciate. Thanks in advance.

j.








		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&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