[SOLVED] [nagios] error NRPE: Unable to read output
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have nagios server installed on linux server (centos 6) , and all communications with nrpe clients are done .
To monitor free memory usage of (RAM),I created script perl to do this .
You can see below the result of script's execution
I have run the command on clients with user nagios and the result semms good , but it doesn't store anything on file log .
Here i post the content of configurations file
==> nrpe.cfg (client_server)
The nrpe.cfg is on directory /etc/nagios , and the owner is nagios .I think thats correct .
All plugins on clients have the same owner , it's nagios user
Note that nrpe has run with nrpe user
Yes , it worked successfully and you can see that result from nagios server
Code:
/usr/local/nagios/libexec/check_nrpe -H 10.114.19.191 -c check_http
HTTP OK: HTTP/1.1 200 OK - 252 bytes in 0.002 second response time |time=0.001569s;;;0.000000 size=252B;;;0
I made a mistake that the DIRECTORY plogins was owned by user nagios not nrpe who is run the check
However i have just switch the owner to nrpe user , and it's work .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.