Page 1 of 1

NRPE: Unable to read output

Posted: Wed Sep 24, 2014 9:39 am
by veenm
Hi ,

We have configured one linux server and few services are giving output and few now. Throwing attached error (NRPE: Unable to read output ) . If run script localy i am getting output , however when i try to run the command from nagios i get error :- NRPE: Unable to read output

And script has the same persmisson as the working scripts, and i dont see any permission issue.

Re: NRPE: Unable to read output

Posted: Wed Sep 24, 2014 9:52 am
by eloyd
If you search the forum for this topic "NRPE: Unable to read output" you will see a lot of information that might help you. Off the top of my head, I would say that the commands that nagios (the user) is executing on the remote host are not in the sudoers file and therefore, nagios (the user) is not able to gather the appropriate information.

Re: NRPE: Unable to read output

Posted: Wed Sep 24, 2014 10:11 am
by veenm
Thanks for your reply

However i am getting the output for other plugins as well with any permission issue. I suspect it is because of SELINUX , as i can see SELINUX is enable on the server.

Re: NRPE: Unable to read output

Posted: Wed Sep 24, 2014 10:15 am
by eloyd
Have you tried disabling SELINUX and checking to see?

Code: Select all

echo 0 >/selinux/enforce
will temporarily disable it.

Re: NRPE: Unable to read output

Posted: Wed Sep 24, 2014 4:33 pm
by sreinhardt
I completely agree with eloyd here, thats not all to uncommon though. :) Let's disable selinux, get it working properly then if you need to re-enable you\we can work out the proper context that nrpe and plugins will need to be placed in.

Re: NRPE: Unable to read output

Posted: Wed Sep 24, 2014 4:38 pm
by lmiltchev
@veenm
You can check if selinux has been disabled by running:

Code: Select all

sestatus
However, sometimes, this error ("NRPE: Unable to read output") can be caused by incorrect plugin paths. Double check how commands are defined on the client.
Hope this helps.

@eloyd
Thanks again! :)

Re: NRPE: Unable to read output

Posted: Wed Sep 24, 2014 5:56 pm
by eloyd
You can thank me if it works. :-)

Re: NRPE: Unable to read output

Posted: Thu Sep 25, 2014 3:39 am
by veenm
Hi,

Problem resolved , i disabled the SELINUX and it working fine now.