Page 2 of 4

Re: message "NRPE:unable to read output"

Posted: Wed Dec 23, 2015 5:28 am
by RIDS_I2MP
Please find the attached snapshots, it consists the output of commands on remote host.

I have restarted the nrpe client after editing the nrpe configuration file, but still I am facing the same issue.

Re: message "NRPE:unable to read output"

Posted: Wed Dec 23, 2015 8:51 am
by RIDS_I2MP
I have restarted the nrpe client but still I am facing the same issue.

Please find the snapshots attached consisting the output of commands run on remote server.

Re: message "NRPE:unable to read output"

Posted: Wed Dec 23, 2015 11:40 am
by hsmith
In the first screenshot, is that being run as the Nagios user? Or as root? The portion where we can see what user it is is cropped out.

Re: message "NRPE:unable to read output"

Posted: Thu Dec 24, 2015 1:06 am
by RIDS_I2MP
Nagios user is give sudo root permissions. So the commands are executed as root user.

sudo su - root

Above mentioned is the command executed before other commands shown in the snapshot.

Re: message "NRPE:unable to read output"

Posted: Mon Dec 28, 2015 4:22 am
by RIDS_I2MP
Hi Team,

Please let us know if any further input on this issue. As stated earlier in my response, we ran the command using Nagios user but Nagios user is having the root access.

Re: message "NRPE:unable to read output"

Posted: Mon Dec 28, 2015 10:35 am
by lmiltchev
Can you run the same command as a nagios user? Run the following commands on the remote machine and show the output?

Code: Select all

su nagios
/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p  /home

Re: message "NRPE:unable to read output"

Posted: Mon Dec 28, 2015 10:37 am
by rkennedy
rkennedy wrote:This might have to do with permissions on the client machine.

On the client machine, can you run the following and post the output?

Code: Select all

ls -l /usr/local/nagios/libexec/
Can you post the output of this command as well?

Re: message "NRPE:unable to read output"

Posted: Tue Dec 29, 2015 1:19 am
by RIDS_I2MP
Hi Team,

Please find the output of the commands in the attached snapshot.

Re: message "NRPE:unable to read output"

Posted: Tue Dec 29, 2015 10:27 am
by lmiltchev
It seems like nagios user doesn't have sufficient permissions. Can you log in as root on the remote machine, run the following commands and show the output?

Code: Select all

ls -lad /usr/local/nagios
ls -lad /usr/local/nagios/libexec
ls -la /usr/local/nagios/libexec/check_disk

Re: message "NRPE:unable to read output"

Posted: Wed Dec 30, 2015 2:40 am
by RIDS_I2MP
Please find the attached snapshot.