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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Susie
Posts: 6
Joined: Thu Jan 07, 2016 1:44 pm

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

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post by rkennedy »

What are the permissions for the check_cpu_stats.sh file?

Code: Select all

ls -l check_cpu_stats.sh
Former Nagios Employee
Susie
Posts: 6
Joined: Thu Jan 07, 2016 1:44 pm

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

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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.
Former Nagios Employee
Locked