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.
Downgrade Nagios XI
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Downgrade Nagios XI
Uninstall XI: https://assets.nagios.com/downloads/nag ... ios_XI.pdf
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)
Restore your backup: https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Please let us know if you have any questions.
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)
Restore your backup: https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Please let us know if you have any questions.
-
sandeepatil
- Posts: 211
- Joined: Tue Dec 27, 2016 3:12 am
Re: Downgrade Nagios XI
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
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.
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
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
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.
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/
https://www.mcapra.com/
-
sandeepatil
- Posts: 211
- Joined: Tue Dec 27, 2016 3:12 am
Re: Downgrade Nagios XI
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
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
But for fullinstall, recommended newly installed, “clean” system with minimal install.
Re: Downgrade Nagios XI
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!