Page 1 of 1
Possibility to upgrade Nagios core to 4.4.2
Posted: Wed Aug 22, 2018 3:36 am
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
Re: Possibility to upgrade Nagios core to 4.4.2
Posted: Wed Aug 22, 2018 11:09 am
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:
to this:
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:
Let us know if this helped.
Re: Possibility to upgrade Nagios core to 4.4.2
Posted: Thu Aug 23, 2018 10:42 am
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
Re: Possibility to upgrade Nagios core to 4.4.2
Posted: Thu Aug 23, 2018 11:56 am
by lmiltchev
I am glad I could help!
