NRPE works but Nagios reports "not defined"
Posted: Wed Dec 05, 2012 6:46 pm
I'm having an issue that I can't seem to figure out. I'm using RHEL5 and attempting to use NRPE to track free space on the root disk. The problem is it's reporting that it is "not defined" even though it is. If I run the command on the remote machine it returns correctly. If I run it from the nagios server it also reports back fine but the service check on the Nagios status page is reporting as not defined.
I can get it to work if I remove the service check from that machine on the Nagios server, wait a few minutes and the re-add it. Then it does a re-check and comes up working but it will eventually starts reporting incorrectly. I'm running the same configuration file on all my Linux machines and they all are working except this one machine. And all the the other monitored services through nrpe are working just fine. It's just this one root disk check for some reason. Am I missing something in my configuration? Does something need to be put in the commands.cfg file on the Nagios server?
I can get it to work if I remove the service check from that machine on the Nagios server, wait a few minutes and the re-add it. Then it does a re-check and comes up working but it will eventually starts reporting incorrectly. I'm running the same configuration file on all my Linux machines and they all are working except this one machine. And all the the other monitored services through nrpe are working just fine. It's just this one root disk check for some reason. Am I missing something in my configuration? Does something need to be put in the commands.cfg file on the Nagios server?
Code: Select all
# Remote nrpe.conf
command[check_root]=/usr/local/nagios/libexec/check_disk -w 20% -10% -p /
Code: Select all
# Nagios service check
define service{
use local-service
hostgroup linux-servers
service_discriptions Root Disk /
check_command check_nrpe!check_root
}