CHECK_NRPE: Error receiving data from daemon

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cshaffer
Posts: 38
Joined: Tue May 13, 2014 10:45 am

Re: CHECK_NRPE: Error receiving data from daemon

Post by cshaffer »

Wait a minute. How do I run NRPE without SSL? That was my original question. I thought the -n option of check_nrpe did that, but I still got the error.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: CHECK_NRPE: Error receiving data from daemon

Post by sreinhardt »

You need to start the nrpe daemon without ssl and use the agent without ssl. -n should be added in /etc/xinetd.d/nrpe server_args line, if you are not using xinetd you will need to change similar options in /etc/init.d/nrpe. Then yes use the -n flag with the check_nrpe plugin also. They both must match otherwise it will not work.
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.
cshaffer
Posts: 38
Joined: Tue May 13, 2014 10:45 am

Re: CHECK_NRPE: Error receiving data from daemon

Post by cshaffer »

OK. I don't even find a /etc/init.d/nrpe file. Clearly this install did not go properly. Part of the problem is that this is an older RHEL4 install. Yum, which checks dependencies, was not available when it was originally setup. All I have to work with is wget and rpm. I installed the nagios agent by downloading rpm packages and I suspect that dependencies were missed. I am convinced that I need to start over by installing yum, which will check for dependencies. Then try reinstalling the nagios agent with yum, which should pull in needed dependencies. My plan is to remove the host and services associated with this how from the server. Then remove all of the files on the client host related to nagios. Then get yum installed and start over. Does this sound like a good approach to you?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: CHECK_NRPE: Error receiving data from daemon

Post by sreinhardt »

That sounds like an excellent approach. Sorry you had to go through the rpm dependency fun... it's not so fun.
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.
cshaffer
Posts: 38
Joined: Tue May 13, 2014 10:45 am

Re: CHECK_NRPE: Error receiving data from daemon

Post by cshaffer »

Thanks. I guess that's why they developed yum.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_NRPE: Error receiving data from daemon

Post by lmiltchev »

:D Let us know how it went.
Be sure to check out our Knowledgebase for helpful articles and solutions!
cshaffer
Posts: 38
Joined: Tue May 13, 2014 10:45 am

Re: CHECK_NRPE: Error receiving data from daemon

Post by cshaffer »

I am investigating the SSL setup and have noticed some things. First, the RedHat server is not running apache, but it is running TomCat. This is a requirement of the application it is running (an ERP ssytem). I also noticed something else. In the directory /opt/rseserver, there is a file called ssl.properties. In this file there is an option enable_ssl=false. Does this affect the Nagios NRPE connection? Is RSE involved in the NRPE function? It looks like this file is currently setup to disable SSL when there is an SSL daemon present. Currently there is not an SSL daemon present, but I have found instructions on enabling it. This may be outside the scope of Nagios support, but I am interested in your opinion on it.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: CHECK_NRPE: Error receiving data from daemon

Post by abrist »

rseserver should have nothing to do with nrpe. nrpe is either run as a standalone daemon or as a sub-daemon run from inetd/xinetd.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
cshaffer
Posts: 38
Joined: Tue May 13, 2014 10:45 am

Re: CHECK_NRPE: Error receiving data from daemon

Post by cshaffer »

As I get into this, I am finding that this isn't even a standard Tomcat implementation. I am concerned that I may affect the ERP system's functionality. Is there a way to avoid this SSL issue altogether by not using NRPE and using another method for setting up monitoring on this RHEL4 host? Something simpler maybe. This is inside a private network, and the ERP hoat does not access the web.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CHECK_NRPE: Error receiving data from daemon

Post by scottwilkerson »

Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked