Home » Categories » Multiple Categories

Nagios XI - Upgrading Nagios Core

Overview

This KB article explains how to upgrade the version of Nagios Core that runs on your Nagios XI server.

This specifically relates to users that have installed Mod Gearman 2 (MG2) on a Nagios XI 5.5.x server, and now wish to upgrade to Mod Gearman 3 (MG3). Mod Gearman 2 was compatible only with Nagios Core 4.2.4 and below, while Mod Gearman 3 is compatible only with Nagios Core 4.4.3 and above.

 

Upgrade

The following steps will upgrade Nagios Core to the latest version, please be aware that the Nagios service is stopped during this procedure and hence there will be no monitoring performed.

You need to stop the nagios service using one of the commands below:

RHEL 6 | CentOS 6 | Oracle Linux 6 | Ubuntu 14

service nagios stop

 

RHEL 7 | CentOS 7 | Oracle Linux 7

systemctl stop nagios.service
systemctl disable nagios.service

 

Debian | Ubuntu 16/18

systemctl stop nagios.service
systemctl disable nagios.service

 

The following steps will upgrade Nagios Core:

cd /tmp
rm -rf nagiosxi xi*
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./init.sh
cd subcomponents/nagioscore
./upgrade

For Mod Gearman 2 users, keep in mind that newer versions of Nagios Core are incompatible with the old module. This upgrade script will prompt you, asking if you intend to use Mod Gearman 2. If you respond 'yes', Nagios Core will not be upgraded.

In order to upgrade properly, you will need to remove or comment out the broker_module line from nagios.cfg:

sed -i 's/^broker\(.*\)gearman2\(.*\)/#broker\1gearman2\2/' /usr/local/nagios/etc/nagios.cfg

 

Once these steps have completed the Nagios service will will need to be restarted using the commands below:

RHEL 6 | CentOS 6 | Oracle Linux 6 | Ubuntu 14

service nagios restart

 

RHEL 7 | CentOS 7 | Oracle Linux 7

systemctl enable nagios.service
systemctl restart nagios.service

 

Debian | Ubuntu 16/18

update-rc.d nagios defaults
systemctl restart nagios.service

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - Common Upgrade Failures And Solutions
Viewed 1341 times since Thu, Jun 29, 2017
Nagios XI - Reset Upgrade Status In Web Interface
Viewed 1195 times since Tue, May 7, 2019
Nagios XI - How To Install On Windows Using Hyper-V
Viewed 761 times since Wed, Jul 19, 2017
Nagios XI - Update Components And Wizards
Viewed 471 times since Sun, Feb 3, 2019
Nagios XI - How to Upgrade Using the Web UI
Viewed 524 times since Thu, Jan 28, 2016
Nagios XI - How To Install On Windows Using VMware
Viewed 816 times since Wed, Jul 19, 2017
Nagios XI - Restoring Default Configuration
Viewed 1104 times since Tue, Jan 26, 2016
Installation errors on customized corporate builds of CentOS or RHEL
Viewed 1321 times since Tue, Jan 26, 2016
Nagios XI - How To Create A Virtual Instance In The Amazon EC2 Cloud Environment
Viewed 546 times since Thu, Jan 28, 2016
Nagios XI - Downgrading Nagios Core
Viewed 945 times since Wed, Aug 15, 2018