This is a cache of https://support.nagios.com/kb/article/nagios-xi-downgrading-nagios-core-823.html. It is a snapshot of the page at 2025-05-14T00:11:03.111+0000.
Nagios <strong>xi</strong> - Downgrading Nagios Core
Home » Categories » Multiple Categories

Nagios xi - Downgrading Nagios Core

Overview

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

Specifically this relates to the Nagios xi 5.5.x release that comes with Nagios Core 4.4.x. Currently Nagios Core 4.4.x is not compatible with Mod Gearman (MG), to allow Nagios xi 5.5.x to run MG the version of Nagios Core needs to be downgraded to 4.2.4.

 

 

Downgrade

The following steps will downgrade Nagios Core to 4.2.4, 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 7 | CentOS 7 | Oracle Linux 7

systemctl stop nagios.service
systemctl disable nagios.service
rm -f /usr/lib/systemd/system/nagios.service
systemctl daemon-reload

 

Debian | Ubuntu 16/18

systemctl stop nagios.service
systemctl disable nagios.service
rm -f /lib/systemd/system/nagios.service
systemctl daemon-reload

 

The following steps will downgrade Nagios Core:

sed -i 's/^lock_file=.*/lock_file=\/usr\/local\/nagios\/var\/nagios.lock/g' /usr/local/nagios/etc/nagios.cfg
cd /tmp
rm -rf nagiosxi xi*
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.4.13.tar.gz
tar xzf xi-5.4.13.tar.gz
cd nagiosxi
./init.sh
cd subcomponents/nagioscore
./upgrade
chmod +x /etc/init.d/nagios

 

Now the lock file locations need updating:

sed -i 's/^lock_file=.*/lock_file=\/var\/run\/nagios.lock/g' /usr/local/nagios/etc/nagios.cfg
sed -i 's/^NagiosRunFile=.*/NagiosRunFile=\/var\/run\/nagios.lock/g' /etc/init.d/nagios
sed -i 's/^# pidfile.*/# pidfile: \/var\/run\/nagios.lock/g' /etc/init.d/nagios

 

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

 

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/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

3 (2)
Article Rating (2 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 - How To Create A Virtual Instance In The Amazon EC2 Cloud Environment
Viewed 5031 times since Thu, Jan 28, 2016
Nagios xi - How To Install On Windows Using VMware
Viewed 7923 times since Wed, Jul 19, 2017
Nagios xi - License Entitlements
Viewed 18292 times since Mon, Jan 25, 2016
Nagios xi - How To Install On Windows Using vSphere
Viewed 5088 times since Wed, Jul 19, 2017
Nagios xi - Installing Nagios xi In An Offline Environment
Viewed 7542 times since Thu, Feb 18, 2016
Nagios xi - Installation Prerequisites
Viewed 14183 times since Sun, Dec 21, 2014
Nagios xi - How To Install On Windows Using Hyper-V
Viewed 6416 times since Wed, Jul 19, 2017
Nagios xi - Update Components And Wizards
Viewed 5375 times since Sun, Feb 3, 2019
Nagios xi - How to Upgrade Using the Web UI
Viewed 5071 times since Thu, Jan 28, 2016
ERROR: Please add the ’Optional’ channel to your Red Hat systems subscriptions
Viewed 27210 times since Tue, Jan 26, 2016