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
CHECK_NRPE: Received 0 bytes from daemon.
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: CHECK_NRPE: Received 0 bytes from daemon.
Previous Nagios employee
-
InscrutableDude
- Posts: 47
- Joined: Mon Mar 27, 2017 10:19 am
Re: CHECK_NRPE: Received 0 bytes from daemon.
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?
Do you have a doc on how to uninstall the normal agent?
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: CHECK_NRPE: Received 0 bytes from daemon.
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.
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.
-
InscrutableDude
- Posts: 47
- Joined: Mon Mar 27, 2017 10:19 am
Re: CHECK_NRPE: Received 0 bytes from daemon.
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.
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.
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
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.
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.
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
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 restartCode: Select all
service nrpe stop
chkconfig nrpe offCode: Select all
yum remove nrpe
apt-get remove nrpeIf you have any errors, first take a look at this guide for any help.
https://assets.nagios.com/downloads/nag ... utions.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!