Now we narrowed it down to the one check that is failing.
It could be a permission problem with the plugin so try adding this line to the /etc/sudoers file and then see if the check can run from the Nagios server.
Can you confirm that in your nrpe.cfg file, the command[nagios_memory] is pointing to the correct location of the plugin (/etc/nagios/nrpe.d/check_mem).
If it is correct then nrpe/xinetd must not have been restarted or there is duplicates running.
At this point, restart the entire server and test again.
If it still does not run after this, then we need to turn on NRPE debugging to collect more information.
Edit the file: /usr/local/nagios/etc/nrpe.cfg
Define debug=1
(it will currently be debug=0)
Save the file and service xinetd restart
Now we need to add an option to the rsyslog server so it processes debug messages
Edit the file: /etc/rsyslogd.conf
Find /var/log/messages
The line in the config file will look like:
*.info;mail.none;authpriv.none;cron.none /var/log/messages
We need to add the following to the line:
*.info;mail.none;authpriv.none;cron.none;daemon.debug /var/log/messages
Save the file and service rsyslog restart
No test executing the plugin via check_nrpe
Now there should be more information logged in /var/log/messages
Please post what is logged.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.