Page 2 of 2

Re: Linux Agent and Updates

Posted: Thu Sep 15, 2016 3:55 pm
by jfrickson
saber wrote:Thank you,

A proper upgrade should like the following?

wget https://github.com/NagiosEnterprises/nr ... 0.1.tar.gz
tar xzf 3.0.1.tar.gz
cd nrpe-3.0.1
./configure
make all
make install-daemon

Does it matter if we use NRPE behind XINETD or as a standalone app for the upgrade process?
Looks good!
If you're changing from/to xinetd to/from daemon, make sure the old config is removed, and do either make install-inetd or make install-init.

Re: Linux Agent and Updates

Posted: Thu Sep 15, 2016 4:03 pm
by saber
Thanks really appreciated.

We are running it via XINETD and we will keep it that way for now.

We ran the upgrade on a test server it went fine, but now getting the following error:

Code: Select all

CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Logs are not helpful unfortunately..

Re: Linux Agent and Updates

Posted: Thu Sep 15, 2016 4:25 pm
by rkennedy
Please take a look at your /var/log/messages file on the client end, and post it for us to look at. This should contain a reason why it failed.

Re: Linux Agent and Updates

Posted: Thu Sep 15, 2016 4:29 pm
by saber
There is nothing in /var/log/messages , we checked multiple times..

Re: Linux Agent and Updates

Posted: Thu Sep 15, 2016 4:51 pm
by tgriep
Take a look at the NRPE troubleshooting guide for more details but that message points to that NRPE is not running.
https://assets.nagios.com/downloads/nag ... utions.pdf
Verify that the settings in the /etc/xinetd.d/nrpe file didn't get reset and that you restarted xinetd after the upgrade.

Re: Linux Agent and Updates

Posted: Fri Sep 16, 2016 6:15 pm
by saber
I think it's related that I did not enable the params during the configure step..

./configure --enable-command-args

What do you think? The linux agent script installs NRPE with params enabled while the latest NRPE (3.0.X) does not..

Re: Linux Agent and Updates

Posted: Sun Sep 18, 2016 10:34 pm
by Box293
Our install guide instructs you to compile using --enable-command-args, you will need to do that for NRPE v3 (the linux agent script autmatically does it for you).

https://support.nagios.com/kb/article.php?id=515
https://support.nagios.com/kb/article.php?id=520

Re: Linux Agent and Updates

Posted: Mon Sep 19, 2016 8:19 am
by saber
Thank you for the answer, will try that.

Re: Linux Agent and Updates

Posted: Mon Sep 19, 2016 9:53 am
by tmcdonald
Great, let us know how it turns out!