[SOLVED] CHECK_NRPE: Error receiving data from daemon.
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 opened up the firewall to allow port 5666 and I have set SElinux to permissive. I have the xinetd running and nrpe in in that, so yes i do have nrpe running.
1) Make sure the /usr/local/nagios directory, sub-directories and files are owned by user "nagios".
2) Make sure you've configured xinetd to run the nrpe process as nagios user rather than root.
3) Make sure your nrpe.cfg has a line that is allowing the the Nagios server access e.g.:
allowed_hosts=x.x.x.x
Where x.x.x.x is the IP of the Nagios server.
Also check /var/log/messages to see if nrpe put anything there that might tell you what the problem is.
How did you configure the NRPE daemon? To listen to a specific IP (that of the Nagios server)? Did you run the test succesfully on the remote server as explained in the installation guide? Check logs for any indication (in Debian nrpe logs in /var/log/messages on receiving commands). I'm not at work right now and don't have access so cannot compare things. Post your NRPE config if you want me to have a look at it. I can compare to mine in the morning (that's in about 9.5 hours).
It looks to me that SELinux isn't the only problem you have. I'm not familiar with SELinux, so someone else will have to help out with that (or just disable it temporary to see if that helps). But as showing in the log you have some misconfiguration in your NRPE configuration file. Can you post the config file (masking private info where necessary of course).
Kind regards,
Eric
PS: You can run the
Code:
run sealert -l 6c9b693f-15bd-4bdd-8197-f4bea61bfea3
command as stated in the log to find out more detailed information why SELinux is preventing stuff. Can you post that relevant output also?
Yes I have figured it out. I had like 6 lines that were wrong back to back and i just removed them and it started to work.
Thanks for you help what really helped me was reminding me about the logs. Some times when you spend to much time figureing out one thing you for get the basics. lol
Last edited by edwardcode; 06-02-2010 at 01:59 PM.
The above I assume is what you're trying to execute. Delete those lines! Nagios and NRPE doesn't work that way.
When you 'tell' Nagios to run a command named 'check_users' agains a host connecting using the NRPE daemon, the first thing the daemon does, is see if that command exists in his config file (read at the bottom of your config file the examples)
Code:
command[check_users]=
Above is how NRPE 'looks' at command requests received from Nagios. Next NRPE runs the command after the '=' and the output gets reported back to Nagios. Following the command examples (comment them out by removing the # at the beginning of the line) you can format your commands. Of course the scripts you're calling will have to exist and have correct permissions set. But that's the next step
Yes I have figured it out. I had like 6 lines that were wrong back to back and i just removed them and it started to work.
Thanks for you help what really helped me was reminding me about the logs. Some times when you spend to much time figureing out one thing you for get the basics. lol
Hi,
Glad you sorted that out One request: please don't just delete or change the content of a post you made if the information might be valuable to other users who are facing the same problems.
If you consider this particular question/problem solved then please mark it as such using the Thread Tools.
When you start to post a reply (not quick reply) there are icons across the top of the box that can be used to put tags around selected text. The one that looks like a little comic strip balloon with text is "quote" and the one next to it that looks like a pound/number sign is "code".
You highlight the text you want in a box then click the code button. It will prepend the highlighted text with "CODE" inside square brackets [] and end it with "/CODE" inside square brackets. When you post it will show up as a code box. The quote button works the same way.
Of course you can always manually type the tags rather than clicking the buttons.
Last edited by MensaWater; 06-03-2010 at 09:48 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.