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.
NRPE: Unable to read output
Re: NRPE: Unable to read output
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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: NRPE: Unable to read output
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.
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
Have you tried disabling SELINUX and checking to see?
will temporarily disable it.
Code: Select all
echo 0 >/selinux/enforce
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
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.
Re: NRPE: Unable to read output
@veenm
You can check if selinux has been disabled by running:
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!
You can check if selinux has been disabled by running:
Code: Select all
sestatusHope this helps.
@eloyd
Thanks again!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NRPE: Unable to read output
You can thank me if it works. 
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: NRPE: Unable to read output
Hi,
Problem resolved , i disabled the SELINUX and it working fine now.
Problem resolved , i disabled the SELINUX and it working fine now.