Re: Remote disk check not working
Posted: Wed Apr 27, 2016 4:54 pm
Me personally, I would define it like this:
Then each service would be defined like this:
And just define the nrpe.cfg commands like so:
Which you may already have defined in /usr/local/nagios/etc/nrpe/common.cfg on your remote machine.
Code: Select all
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}Code: Select all
check_command check_nrpe!check_disk!-a '-w 20% -c 10% -p /'
check_command check_nrpe!check_cpu_stats!-a '-w 85 -c 95'
check_command check_nrpe!check_load!-a '-w 15,10,5 -c 30,20,10'Code: Select all
command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$
command[check_cpu_stats]=/usr/local/nagios/libexec/check_cpu_stats.sh $ARG1$
command[check_load]=/usr/local/nagios/libexec/check_load $ARG1$Which you may already have defined in /usr/local/nagios/etc/nrpe/common.cfg on your remote machine.