NRPE: Unable to read output

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

NRPE: Unable to read output

Post 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.
Attachments
Screenshot-1.png
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NRPE: Unable to read output

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: NRPE: Unable to read output

Post 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.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NRPE: Unable to read output

Post by eloyd »

Have you tried disabling SELINUX and checking to see?

Code: Select all

echo 0 >/selinux/enforce
will temporarily disable it.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: NRPE: Unable to read output

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: Unable to read output

Post 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! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: NRPE: Unable to read output

Post by eloyd »

You can thank me if it works. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: NRPE: Unable to read output

Post by veenm »

Hi,

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