From: Jonathan M. <jm...@wh...> - 2007-05-30 22:49:04
|
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@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@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@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 |