message "NRPE:unable to read output"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: message "NRPE:unable to read output"

Post by tgriep »

The group permissions for the libexec folder by default, has the set user or group ID on execution set and your folder doesn't have that.
Can you login to the AIX server as root and run the following?

Code: Select all

chmod g+rws /usr/local/nagios/libexec/
Then test to see if this works for you.
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 »

Hi Team,

I executed below command on remote server as root but still I am facing the same issue.

chmod g+rws /usr/local/nagios/libexec
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 »

To add up

Please find the attached snapshot.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: message "NRPE:unable to read output"

Post by tgriep »

Can you login to the remote server and run the following commands as root and post the output?

Code: Select all

ls -l /usr/local
ls -l /usr/local/nagios
ls -l /usr/local/nagios/libexec
Thanks
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.
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 successfully the following command on the Nagios XI box from the command line?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.147.109.30
You may need to add the "check_disk" plugin to the sudoers, i.e.

Code: Select all

nagios   ALL = NOPASSWD:/usr/local/nagios/libexec/check_disk *
Unfortunately we don't have an AIX system in house to test this.

FYI, we cannot see what the permissions are on "check_disk" from the screenshot that you provided.
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 »

Hi Team,

Please find the attached snapshot
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: message "NRPE:unable to read output"

Post by rkennedy »

lmiltchev wrote: You may need to add the "check_disk" plugin to the sudoers, i.e.

Code: Select all

nagios   ALL = NOPASSWD:/usr/local/nagios/libexec/check_disk *
Can you make this change on the AIX system? The permissions are root:root which may be why you are seeing this issue.
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,

we inserted the below provided line into the sudousers file, but still we are getting the same error:

nagios   ALL = NOPASSWD:/usr/local/nagios/libexec/check_disk *

Please suggest if any further action to be taken.

Just to inform that for any other server, we are not adding this line into the sudousers file but we are able to monitor it successfully.
can you please confirm on this query as well.
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: message "NRPE:unable to read output"

Post by tgriep »

What is the name and IP address of the AIX server?
Does the nagios user have access to the /home folder on the AIX server?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked