Possibility to upgrade Nagios core to 4.4.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
edwardvanhaute
Posts: 13
Joined: Wed Aug 01, 2018 3:46 am

Possibility to upgrade Nagios core to 4.4.2

Post by edwardvanhaute »

Hi,

We are running Nagios XI 5.5.2. Currently we are facing a bug with notifications, which exists in Nagios Core 4.4.1, and seems to be fixed in 4.4.2 (from what I understand).
This is the bug: https://github.com/NagiosEnterprises/na ... issues/550

My question is this: would it be possible to upgrade the underlying Nagios core on our Nagios XI machine?

Just follow standard upgrade instructions for Nagios core?

Thanks for the help,
Edward
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Possibility to upgrade Nagios core to 4.4.2

Post by lmiltchev »

After taking all of the precautionary measures (backups, snapshots, etc.), you can do the following:

1. Go to the /tmp/nagiosxi/subcomponents/nagioscore directory:

Code: Select all

cd /tmp/nagiosxi/subcomponents/nagioscore
2. Download the Nagios Core 4.4.2 tarball:

Code: Select all

wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.2.tar.gz
3. Modify the upgrade file in a text editor by changing this line:

Code: Select all

pkgname="nagios-4.4.1"
to this:

Code: Select all

pkgname="nagios-4.4.2"
Save and exit.

4. Modify the apply-patches file in a text editor by commenting out the last three patches:

Code: Select all

# fix check_interval and retry_interval bug in Core 4.4.1
#patch "$pkgname/base/checks.c" < patches/fix_check_interval_retry_interval.patch

# fix passive checks sending recovery email when host was previously UP
#patch "$pkgname/base/checks.c" < patches/passive_sends_recovery_when_prev_state_was_up.patch

# fix flexible downtime in Core 4.4.1
#patch "$pkgname/base/checks.c" < patches/flexible-downtime-fix.patch
Save and exit.

5. Run the upgrade script:

Code: Select all

./upgrade
Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
edwardvanhaute
Posts: 13
Joined: Wed Aug 01, 2018 3:46 am

Re: Possibility to upgrade Nagios core to 4.4.2

Post by edwardvanhaute »

Hi

I have performed the suggested procedure. (after performing a full backup ofcourse)
No problems were found.

The notification bug is also gone now.

Thank you very much for the help!
Edward
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Possibility to upgrade Nagios core to 4.4.2

Post by lmiltchev »

I am glad I could help! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked