message "NRPE:unable to read output"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: message "NRPE:unable to read output"

Post 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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: message "NRPE:unable to read output"

Post 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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: message "NRPE:unable to read output"

Post 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.
Former Nagios Employee.
me.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: message "NRPE:unable to read output"

Post 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.
Thanks & Regards,
I2MP Team.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: message "NRPE:unable to read output"

Post 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.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: message "NRPE:unable to read output"

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: message "NRPE:unable to read output"

Post 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?
Former Nagios Employee
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: message "NRPE:unable to read output"

Post by RIDS_I2MP »

Hi Team,

Please find the output of the commands in the attached snapshot.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: message "NRPE:unable to read output"

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: message "NRPE:unable to read output"

Post by RIDS_I2MP »

Please find the attached snapshot.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
Locked