joe ritter
2005-02-14 14:26:04 UTC
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
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