Linux Agent and Updates

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jfrickson

Re: Linux Agent and Updates

Post 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.
saber
Posts: 41
Joined: Wed Sep 14, 2016 4:32 pm

Re: Linux Agent and Updates

Post 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..
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Linux Agent and Updates

Post 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.
Former Nagios Employee
saber
Posts: 41
Joined: Wed Sep 14, 2016 4:32 pm

Re: Linux Agent and Updates

Post by saber »

There is nothing in /var/log/messages , we checked multiple times..
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Linux Agent and Updates

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
saber
Posts: 41
Joined: Wed Sep 14, 2016 4:32 pm

Re: Linux Agent and Updates

Post 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..
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Linux Agent and Updates

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
saber
Posts: 41
Joined: Wed Sep 14, 2016 4:32 pm

Re: Linux Agent and Updates

Post by saber »

Thank you for the answer, will try that.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Linux Agent and Updates

Post by tmcdonald »

Great, let us know how it turns out!
Former Nagios employee
Locked