This is the error message I'm getting.
On the Nagios server the following is entered under nrpe.cfgcheck_disk: Could not parse arguments
Usage:
check_disk -w limit -c limit [-W limit] [-K limit] {-p path
Performance Data: -x device} [-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ] [-t timeout] [-u unit] [-v] [-X type] [-N type] [-n
Code: Select all
command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$
#command[check_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$
#command[check_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$
#command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$
#command[check_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
Code: Select all
define service{
use generic-service
host_name SERVER2
service_description Root Partition
check_command check_nrpe!check_disk!
}Code: Select all
command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$
#command[check_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$
#command[check_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$
#command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
#command[check_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$And /etc/xinetd.d/nrpe on the remote server
Code: Select all
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = xx.x.x.x
}
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H server2 -c check_disk -a '-w 85% -c 90% -p /'I can't figure out what is wrong here.It's probably something obvious I've forgotten to do!DISK CRITICAL - free space: / 3510 MB (12.81% inode=97%);| /=23888MB;4333;2888;0;28890