Version upgrade 2.7 to 5

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Version upgrade 2.7 to 5

Post by sgoffar »

Can you please send us the steps to upgrade Nagios Xi from2014 2.7 to 5.

What are the risk,mitigation plan and back out plan of this migration. Also advantage of up-gradation and cost.
Last edited by sgoffar on Wed Oct 05, 2016 6:55 am, edited 1 time in total.
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: Version upgrade 2.7 to 5

Post by rkennedy »

Just to get some clarification, are you using Nagios XI or Nagios Core? This was posted in the XI Forum, but Core would be the program that had a version 2.7. A screenshot showing your version would help as well.
Former Nagios Employee
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: Version upgrade 2.7 to 5

Post by sgoffar »

I am using Nagios Xi. Below is the details:

Version:Nagios XI 2014R2.7
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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Version upgrade 2.7 to 5

Post by rkennedy »

Got it, that helps clarify what you're running. Now, back to your original question -
What are the risk,mitigation plan and back out plan of this migration. Also advantage of up-gradation and cost.
No risk really. As always, take a snapshot of the machine before you upgrade and that can serve as your plan if things do not succeed. XI5 is a newer, major release, with quite a bit new functionality. You can look at the entire change log here - https://assets.nagios.com/downloads/nag ... NGES-5.TXT

For questions about the cost, please email [email protected] with your questions.
Former Nagios Employee
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: Version upgrade 2.7 to 5

Post by sgoffar »

Is the below task as mentioned on release note is enough. We don't needs to do anything on DB side?

SL No Task Details
1 Take Backup of Nagios Xi
2 Take Snapshot backup of Nagios Appliance
3 Download Upgrade package to Nagios server
4 Unzip and Run the Upgrade Script
5 Check The Upgrade version from Console
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: Version upgrade 2.7 to 5

Post by rkennedy »

One thing to check, were you previously using postgres? Please run this command and share the output -

Code: Select all

grep -R 'dbtype' /usr/local/nagiosxi/html/config.inc.php
When you run the backup, it will backup your databases, but if you're going from SQL -> Postgres for Nagios XI it will not work for the nagiosxi database - https://assets.nagios.com/downloads/nag ... ios-XI.pdf
The backup script will save a copy of the following components of Nagios XI:

Nagios Core files (
/usr/local/nagios
)

Nagios XI files (
/usr/local/nagiosxi
)

NagiosQL files (
/var/www/html/nagiosql
and
/etc/nagiosql
)

Select Apache config files (in
/etc/httpd/conf.d
)

Select logrotate config files (in
/etc/logrotate.d
)

Select MySQL databases (
nagios
and
nagiosql
)

Select PostgresQL databases (
nagiosxi
)
Former Nagios Employee
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: Version upgrade 2.7 to 5

Post by sgoffar »

Please find below details:

[root@dfwlxngxi01 ~]# 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',
//require_once(dirname(__FILE__).'/db/'.$cfg['dbtype'].'.inc.php');

Also We don't needs to do anything on existing agents for Monitoring servers right?
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: Version upgrade 2.7 to 5

Post by rkennedy »

"dbtype" => 'pgsql',
This will cause issues, as previous versions used postgres, but the current version will use mysql. When you deploy out a new machine on XI5 already, it's going to be expecting the mysql, but your backup will have the postgres data

If you want to start fresh, and keep all of the information from the nagiosxi database (user configurations and such), then you'll want to deploy a fresh 2014 machine, clean upgrade from this, and then do the backup / restore process.
Former Nagios Employee
sgoffar
Posts: 122
Joined: Wed Sep 21, 2016 9:30 am

Re: Version upgrade 2.7 to 5

Post by sgoffar »

I am not clear on last point. As per my understanding both the mysql and pgsql are present in current version.

And pgsql is used to store nagiosxi data only. For current version u mean there is no pgsql db concept.



[root@dfwlxngxi01 ~]# 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',
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: Version upgrade 2.7 to 5

Post by dwhitfield »

sgoffar wrote:I am not clear on last point. As per my understanding both the mysql and pgsql are present in current version.
pgsql is not on fresh installs of new versions. On upgrades it gets pushed along. Does that clarify the point for you?
Locked