Page 2 of 2

Re: CHECK_NRPE: Received 0 bytes from daemon.

Posted: Fri May 26, 2017 2:12 pm
by avandemore
You should not mix and match NRPE's. Your best best for support here is to remove your distributions NRPE, and use the one installed from this document:
https://assets.nagios.com/downloads/nag ... _Agent.pdf

Re: CHECK_NRPE: Received 0 bytes from daemon.

Posted: Fri May 26, 2017 2:19 pm
by InscrutableDude
I agree. If you scroll back a bit you'll see that I have tried both versions. This server had an issue running the normal agent install, so i went the custom route, as I recall. the custom one doesn't seem to run automatically.

Do you have a doc on how to uninstall the normal agent?

Re: CHECK_NRPE: Received 0 bytes from daemon.

Posted: Sat May 27, 2017 11:54 am
by dwhitfield
can you define normal and custom? If by normal you mean your distribution then it's going to be something like yum remove nagios-nrpe-server. yum repolist all might be useful information.

Also, are you asking about removing stuff on the XI machine or on the remote machine?

If you are talking about the remote machine, what I would do is just find / -name *nrpe* and remove everything. Then start fresh with the one you think is working.

Re: CHECK_NRPE: Received 0 bytes from daemon.

Posted: Mon May 29, 2017 7:37 am
by InscrutableDude
Hi,

I'm not touching the Nagios Xi machine.

"Normal" means the regular agent you install with these instructions: https://assets.nagios.com/downloads/nag ... _Agent.pdf

The other is, I believe, the version 3 agent. I was advised to try that when the Normal one wouldn't work for some inexplicable reason.

Re: CHECK_NRPE: Received 0 bytes from daemon.

Posted: Tue May 30, 2017 2:24 pm
by tgriep
There is not an uninstall script for the agent. You would have to remove the files by hand.
The NRPE version 2.15 agent (The normal, regular agent) installs in the same folder as the version 3 agent, it just starts differently.
The 2.15 version runs using the xinetd daemon so to stop it from running, delete the /etc/xinetd.d/nrpe config file and restart xinetd by running

Code: Select all

service xinetd restart
The version 3 NRPE starts as a daemon and to stop it from running / starting, run the following as root. Depending on your OS, you may have to adjust the commands.

Code: Select all

service nrpe stop
chkconfig nrpe off
If you have the binary version of the NRPE Agent, you can remove it by running one of the following. Depending on your OS, you may have to adjust the commands.

Code: Select all

yum remove nrpe
apt-get remove nrpe
Then, try installing one version of the agent and see if you can get it to work.
If you have any errors, first take a look at this guide for any help.
https://assets.nagios.com/downloads/nag ... utions.pdf