Page 1 of 1

3 services reporting NRPE:Unable to read output; others fine

Posted: Wed Jan 27, 2016 11:48 am
by Susie
Hi, I need some help figuring out why 3 services on an Ubuntu client are reporting as NRPE: Unable to read output when other services on the same host are reporting fine. They are: CPU Stats, Memory Usage and Open Files. We've kept the default configuration and are using xinetd. We have some clients that needed a route added, but it seems to me that if that were the case, none of the services would be reporting. Based on other posts similar to this problem I've run the follwing tests:

sh check_cpu_stats.sh
CPU STATISTICS OK: user=0.10% system=0.10% iowait=0.00% idle=99.80% | user=0.10% system=0.10% iowait=0.00%;30;100 idle=99.80%

echo $?
0

cat /etc/sudoers |grep tty
Defaults:nagios !requiretty
Defaults:nagios !requiretty


Any thoughts as to why select services are not reporting properly? Thanks in advance for any help you can provide. Susie

Re: 3 services reporting NRPE:Unable to read output; others

Posted: Wed Jan 27, 2016 12:59 pm
by rkennedy
What are the permissions for the check_cpu_stats.sh file?

Code: Select all

ls -l check_cpu_stats.sh

Re: 3 services reporting NRPE:Unable to read output; others

Posted: Wed Jan 27, 2016 1:05 pm
by Susie
Everything with the exception of check_nrpe and check_init_service is root:root.
BTW, I'm looking at /usr/local/nagios/libexec. Is that the correct location?

OK. So based on your question I checked the permissions on another client that IS successfully reporting those services and sure enough they are set to nagios:nagios. I changed check_cpu_stats.sh to nagios:nagious and it started working. THANK YOU! :D

Re: 3 services reporting NRPE:Unable to read output; others

Posted: Wed Jan 27, 2016 1:30 pm
by rkennedy
Yes, that's the correct location.

No problem! Glad to see this working. I'll close this thread out now, but feel free to open a new one if you ever need assistance in the future.