I have 2 centos server
Server 1 - centos 6.8
Server 2 - centos 6.7
Originaly I had the issue on Server 1 but was able to fix the issue I had with the fix explained here
NRPE unable to read output, but why?
When I try to the same fix on Server 2 i get the following error as explained in the above link.
root@server2 [/usr/local/nagios/libexec]# ./check_nrpe -H 127.0.0.1 -c check_exim
NRPE: Unable to read output
But if I run the command locally it works
root@server2 [/usr/local/nagios/libexec]#
/usr/local/nagios/libexec/check_exim_queue -c 20 -w 40 Mailqueue OK -
0 messages on queue
So to test I ran it as the user itself and it works
nagios@cloud-03 [/usr/local/nagios/libexec]# sudo /usr/local/nagios/libexec/check_exim_queue -c 20 -w 40
Mailqueue OK - 0 messages on queue
Any ideas will help