getting error "NRPE: Unable to read output"

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!

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there @joshimithilesh02,

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

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