NRPE: Command 'check_disk' not defined
Jonathan Murray
jmurray at whoi.edu
Thu May 31 00:48:31 CEST 2007
I've been staring at this for a long time, likely pilot error, but maybe
someone has suggestions or sees something I don't...thanks.
Nagios server version 2.8, (OS debian)
Nagios plugin version 1.4.7 (Red Hat Enterprise Linux WS release 4)
NRPE version 2.7.1
other plugins work (check_swap, check_load)
On nagios server:
/usr/local/nagios/etc/checkcommands.cfg
<-snip->
# check_disk
define command{
command_name check_disk
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_disk
}
<-snip->
On the machine I'm trying to monitor, the one running nrpe 2.7.1 with
the Nagios plugin version 1.4.7 (Red Hat Enterprise Linux WS release 4),
in /usr/local/nagios/libexec/etc/nrpe.cfg:
[root at paleo etc]# ls -la
total 28
drwxr-xr-x 2 nagios nagios 4096 May 30 17:03 .
drwxr-xr-x 6 nagios nagios 4096 May 30 17:13 ..
-rwxr-xr-x 1 nagios nagios 7536 May 30 17:03 nrpe.cfg
<-snip->
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p
/dev/sda5
<-snip->
when I test it from the server "nagios" it works fine:
root at nagios:/usr/local/nagios/libexec# ./check_nrpe -H paleo -c check_disk
DISK OK - free space: / 201921 MB (93% inode=99%);|
/=14918MB;228424;228434;0;22 8444
on the system running nrpe "paleo":
[root at paleo etc]# /usr/local/nagios/libexec/check_disk -w 20 -c 10 -p
/dev/sda5
DISK OK - free space: / 201921 MB (93% inode=99%);|
/=14918MB;228424;228434;0;228444
If NRPE, Command 'check_disk' not defined as the web interface reports,
then where should it be defined? I thought I needed to define the
command in the checkcommands.cfg on the server, then define the command
on the client that is running nrpe daemon.
thanks for any ideas,
Jonathan Murray
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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