Page 1 of 4
message "NRPE:unable to read output"
Posted: Thu Dec 17, 2015 5:20 am
by RIDS_I2MP
Hi Team,
I am trying to monitor an AIX server, I have installed nrpe agent on the remote host but when I am trying to monitor server parameters I find "NRPE: unable to read output" message. Please find the attached snapshot for this.
When I run the same script on remote server I receive the required output.
I have set the permission for /usr/local/nagios/libexec as 755 and same permission for all scripts.
kindly help on this.
Thanks in advance.
Re: message "NRPE:unable to read output"
Posted: Thu Dec 17, 2015 10:51 am
by hsmith
Does it work from the XI command line?
Can you post the nrpe.cfg from the remote server here for us to take a look at?
Re: message "NRPE:unable to read output"
Posted: Thu Dec 17, 2015 5:25 pm
by gormank
This is what it says when nothing was sent back to NRPE on STDOUT, among other things... I had a script that printed an error on STDERR, but returned 0 so the status was ok, and it said the exact same thing.
The troubleshooting guide has a section on this message:
https://assets.nagios.com/downloads/nag ... utions.pdf
Re: message "NRPE:unable to read output"
Posted: Fri Dec 18, 2015 2:17 am
by RIDS_I2MP
No it is not working from XI command line.
Please find the below nrpe file.
Re: message "NRPE:unable to read output"
Posted: Fri Dec 18, 2015 11:03 am
by rkennedy
What is the result when you run it over command line?
Re: message "NRPE:unable to read output"
Posted: Mon Dec 21, 2015 1:48 am
by RIDS_I2MP
Hi,
Please find the attached snapshot. I am getting "NPRE: unable to read data" message when I am trying to run the command from Nagios server command line.
Re: message "NRPE:unable to read output"
Posted: Mon Dec 21, 2015 10:12 am
by rkennedy
Can you also post the script that is linked to 'check_cpu_custom'?
Re: message "NRPE:unable to read output"
Posted: Tue Dec 22, 2015 4:21 am
by RIDS_I2MP
I am unable to provide you the script of check_cpu_custom.
please find the details regarding check_disk, find the attached snapshot output when I am running the cmd from Nagios server also find the snapshot output on remote server which is required to be monitored.
Re: message "NRPE:unable to read output"
Posted: Tue Dec 22, 2015 11:42 am
by rkennedy
This might have to do with permissions on the client machine.
On the client machine, can you run the following and post the output?
Re: message "NRPE:unable to read output"
Posted: Tue Dec 22, 2015 11:46 am
by lmiltchev
command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$
Is the path correct? Can you run the following commands on the client (remote machine) and show the output?
Code: Select all
/usr/local/nagios/libexec/check_disk -V
/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p /home
Have you restarted NRPE daemon (or xinetd) on the client after making changes in the nrpe.cfg, so that the changes can take effect?