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

message "NRPE:unable to read output"

Post 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.
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 »

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?
Former Nagios Employee.
me.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: message "NRPE:unable to read output"

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

Re: message "NRPE:unable to read output"

Post by RIDS_I2MP »

No it is not working from XI command line.

Please find the below nrpe file.
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 »

What is the result when you run it over command line?
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,

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.
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 »

Can you also post the script that is linked to 'check_cpu_custom'?
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 »

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.
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 »

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/
Former Nagios Employee
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 »

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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked