Report this

What is the reason for this report?

getting error "NRPE: Unable to read output"

Posted on February 4, 2021

I am using nagios for monitoring my infrastructure. the nagios server is on OEL 7 whereas the client is OEL 6. After setting up both the servers, i’m getting error “NRPE: Unable to read output”. The port 5666 is open from client. I am able connect the client as well using command “/usr/local/nagios/libexec/check_nrpe -H <IP_Address>” and getting the output as well.

please help!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @joshimithilesh02,

There is a good article on the Nagios website with steps on how to troubleshoot that error:

https://support.nagios.com/kb/article/nrpe-nrpe-unable-to-read-output-620.html

In most cases, I believe that it is the plugin that requires sudo privileges. To allow that you could use the visudo command and add the following:

nagios   ALL = NOPASSWD:/usr/local/nagios/libexec/<plugin>

Let me know how it goes! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.