Page 1 of 2

Downgrade Nagios XI

Posted: Thu Jun 15, 2017 9:23 am
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.

Re: Downgrade Nagios XI

Posted: Thu Jun 15, 2017 2:44 pm
by dwhitfield

Re: Downgrade Nagios XI

Posted: Fri Jun 16, 2017 7:43 am
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)

Re: Downgrade Nagios XI

Posted: Fri Jun 16, 2017 9:24 am
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.

Re: Downgrade Nagios XI

Posted: Tue Jun 20, 2017 5:08 am
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.

Re: Downgrade Nagios XI

Posted: Tue Jun 20, 2017 8:24 am
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.

Re: Downgrade Nagios XI

Posted: Tue Jun 20, 2017 8:35 am
by sandeepatil
Thanks for suggestions :) , will check the possibilities.

Re: Downgrade Nagios XI

Posted: Tue Jun 20, 2017 9:04 am
by dwhitfield
You could certainly automate the uninstall, fullinstall, and and restore. It's just three bash scripts.

Re: Downgrade Nagios XI

Posted: Tue Jun 20, 2017 9:20 am
by sandeepatil
But for fullinstall, recommended newly installed, “clean” system with minimal install.

Re: Downgrade Nagios XI

Posted: Tue Jun 20, 2017 9:25 am
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.