But I ran into this problem for some reason I can't figure out. It has to do with running a check_disk on a remote system.
Here's what I have on nrpe.cfg for checking the remote linux
Code: Select all
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_sda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda1
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
Code: Select all
define service{
use generic-service
host_name vmlinux0
service_description CPU Load
check_command check_nrpe!check_load
}
define service{
use generic-service
host_name vmlinux0
service_description Free Disk Space
check_command check_nrpe!check_disk
}
define service{
use generic-service
host_name vmlinux0
service_description Total Processes
check_command check_nrpe!check_total_procs
}
I've also tried to manually run nrpe command:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -c check_sda1
The other two NRPE command works. It gives me the total process and CPU load of the remote linux. I have restarted the services on both monitoring and remote machine and have even restarted both system - same result. I don't get why 2 of the 3 nrpe command works
Your help is greatly appreciated. Thanks.