Downgrade Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Downgrade Nagios XI

Post by sandeepatil »

Hi Team,

Need you help to downgrade the Nagios XI.

Need as per below scenario :

Doing Nagios XI upgrade, done the backup current Nagios XI.
If upgrade failed of any reason, need to downgrade to pervious version and restore the backup.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Downgrade Nagios XI

Post by dwhitfield »

sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Downgrade Nagios XI

Post by sandeepatil »

As per your instruction after uninstall, need format existing OS and clean minimal install again for installing previous version of Nagios XI.
dwhitfield wrote:
Install the version of XI you want: https://assets.nagios.com/downloads/nag ... rsions.php (instructions at https://assets.nagios.com/downloads/nag ... -Linux.pdf)
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Downgrade Nagios XI

Post by dwhitfield »

If all you had on the old machine was XI, then you shouldn't need to reformat.

If you had more than XI, that's likely going to be a problem regardless.
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Downgrade Nagios XI

Post by sandeepatil »

This is possible with one or two Nagios XI servers, but we have 12 Nagios XI servers with more then 15000 host and 50000 services.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Downgrade Nagios XI

Post by mcapra »

Are these XI installations hosted on VMs? Having a VM level snapshot of the machines is a pretty safe and easy way to recover from "failed upgrades".

Wrangling 12 unique critical application servers is a relatively non-trivial DevOps task. In my mind, a CI pipeline might be useful. A simple quality check could be something like "if number of XI problem states was 100 before upgrade, and is 2000 after upgrade, revert to last VM snapshot and notify admins of failure".

If they're physical machines, that is a much trickier problem to solve. You'd probably need to take nightly backups using the Nagios XI backup script and have some sort of Chef/Ansible/Puppet setup to rebuild the machine from scratch and restore Nagios XI to it.

Just a few thoughts.
Former Nagios employee
https://www.mcapra.com/
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Downgrade Nagios XI

Post by sandeepatil »

Thanks for suggestions :) , will check the possibilities.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Downgrade Nagios XI

Post by dwhitfield »

You could certainly automate the uninstall, fullinstall, and and restore. It's just three bash scripts.
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Downgrade Nagios XI

Post by sandeepatil »

But for fullinstall, recommended newly installed, “clean” system with minimal install.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Downgrade Nagios XI

Post by lmiltchev »

You should have a fairly “clean” system after running the "uninstall_xi.sh" script as it removes the DBs (mysql & postgresql), init scripts, users/groups/sudoers, crontabs, nagios & nagiosxi folders, and sub-folders, apache configs, xinetd settings, etc.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked