Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
define service{
use generic-service
host_name server
service_description Disk Spaces
check_command check_nrpe!check_disk
contact_groups server-monitoring
}
Is SELinux active on the monitored server? Which user is running the NRPE service? Can you test that command logged in with that user and attest if the results are the same as in executing remotely (from Nagios)?
user@nagios:/usr/local/nagios/libexec# ./check_nrpe -H x.x.x.x -c check_disk
DISK CRITICAL - /sys/kernel/debug/tracing is not accessible: Permission denied
user@clientserver:/usr/local/nagios/libexec# ./check_nrpe -H 127.0.0.1 -c check_disk
DISK CRITICAL - /sys/kernel/debug/tracing is not accessible: Permission denied