Nagios Update from Nagios XI 2014R2.7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Nagios Update from Nagios XI 2014R2.7

Post by RIDS_I2MP »

Hi Team,

We are using Nagios XI 2014R2.7 and we want to update it online.

Kindly let us know the procedure and risk factors included in this upgrade as we are using Nagios XI to monitor large number of our production servers. So will this online update will include some downtime? How much time will it take to update? If the update fails how can we recover from it?
Thanks & Regards,
I2MP Team.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Update from Nagios XI 2014R2.7

Post by tmcdonald »

The upgrade instructions I always recommend are here:

https://assets.nagios.com/downloads/nag ... nstall.pdf

And we always suggest either taking a VM snapshot if you can, or at the least taking an XI-level backup before doing so:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Downtime should be minimal, honestly the actual monitoring engine is only down for a few seconds during a normal upgrade. Make sure before you do the upgrade that you are able to apply config successfully without any errors, as the upgrade will assume this as a requirement.

How long the update will take depends on many factors, mostly your network speed for the package management. Normally I say set aside half an hour or so, but it generally does not take that long.

Finally, if it fails you can use the second link to restore from a backup you took, otherwise you can revert back to a VM snapshot.
Former Nagios employee
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Nagios Update from Nagios XI 2014R2.7

Post by RIDS_I2MP »

Hi Team,

Can we update the Nagios XI from the GUI console as well other than through commands ? Kindly refer attached snapshot.
GUI Nagios update Tab.PNG
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Update from Nagios XI 2014R2.7

Post by tmcdonald »

You can, but there have been problems in the past with GUI-based upgrades so I always suggest doing so from the command line.
Former Nagios employee
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: Nagios Update from Nagios XI 2014R2.7

Post by sgoffar »

Hi ,

Is the attached steps is fine to upgrade from Nagios XI 2014R2.7 to 5.3.X.

Our DB details is below:

grep -R 'dbtype' /usr/local/nagiosxi/html/config.inc.php
$cfg['dbtype'] = ''; // this setting is no longer used - use settings below
"dbtype" => 'pgsql',
"dbtype" => 'mysql',
"dbtype" => 'mysql',
You do not have the required permissions to view the files attached to this post.
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Update from Nagios XI 2014R2.7

Post by ssax »

Yes, it looks good, I would add when running the upgrade if you have issues, please include the upgrade.log file and any error output from the command line.

Also, make sure that you test applying configuration once it's back up.


Thank you
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: Nagios Update from Nagios XI 2014R2.7

Post by sgoffar »

Hi ,

Can you please re-confirm. On existing version "dbtype" => 'pgsql', will not affect on this upgrade.
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Update from Nagios XI 2014R2.7

Post by rkennedy »

sgoffar wrote:Hi ,

Can you please re-confirm. On existing version "dbtype" => 'pgsql', will not affect on this upgrade.
It will not affect the upgrade. If you were to do a backup and restore, you would be affected because newer versions expect mysql. Otherwise the nagiosxi db will continue to run as pgsql and things will work fine.
Former Nagios Employee
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: Nagios Update from Nagios XI 2014R2.7

Post by sgoffar »

Hi Kennedy,

But after the upgrade, if at some point of time we needs to restore from backup.

What should be the result?
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios Update from Nagios XI 2014R2.7

Post by dwhitfield »

In the case of needing a restore, just spin up a clean version of 2014R2.7, then upgrade from there. If you go back to a version that has pgsql, then that db will be brought along with the updates. It's not ideal, but it works.

Does that answer your question?
Locked