Okay, at the risk of being told to go away and read the docs again…
I have setup NRPE on my remote machine and checked that it works, the config file is all setup with the commands I wish to use along with the corresponding plugins.
I have set up my command definition as this on the Nagios host’s config file.
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
(Where $USER1$ is the path to the libexec directory)
I can execute a command via the NRPE daemon by just typing it in the command line such as: -
/usr/local/nagios/libexec/check_nrpe -H -c check_disk_root
…which works fine. But I always get an orange UNKNOWN result in the web interface with “no output returned from plugin” even though it works fine from the command line. I even tried replacing the $USER1$ macro with the actual path, but same result.
I call it using the following service definitions, which I suppose must be where the problem is somehow.
define service {
use generic-check-disk
name remote-root-part-service
service_description Root Partition NRPE
check_command check_nrpe!check_disk_root
register 0
}
define service {
use generic-check-disk
name remote-root-part-service
service_description Root Partition NRPE
check_command check_nrpe!check_disk_root
register 0
}
define service {
use remote-root-part-service
host_name 252
}
Obviously, the host_name holds the same IP address for the host that I used on the command line.
Any idea why this doesn’t work through the web interface but the plugin works fine through the command line? The NRPE daemon definitely works fine.
Anything I need to look at specifically in the docs?
Edited ]