Migration bethween different versions (5.5.9 to 5.6.8)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
junkertf
Posts: 119
Joined: Tue Aug 08, 2017 1:52 am

Migration bethween different versions (5.5.9 to 5.6.8)

Post by junkertf »

Hello!

We have made a huge step forward for our new cluster infrastructure, regarding the document mentioned the below support forum.

https://support.nagios.com/forum/viewto ... 16&t=54664

I have few questions, because the original config has some changes on the server filesystems as well as the historical performance datas, global and service/host checks. Moreover the current version of our PROD system is 5.5.9 and the fresh system is 5.6.8.
Is that type of migration possible?

Also a question, that what order i the licenc information update/given must in that case on the new system.
Obviously after the successfull migration we will shut down the nagios instance on our old server, to hold the nagios licence limitation rule.

Thank you, best regards,

Ferenc

Ferenc
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Migration bethween different versions (5.5.9 to 5.6.8)

Post by benjaminsmith »

Hi Ferenc,

The backup/restore process must be done between the same versions of Nagios XI. In your case, it would be best to upgrade to 5.6.8 on the PROD system and then migrate.

See: Backing Up And Restoring Your Nagios XI System

Your XI license allows for 3 installs: production, test, and backup. You can fully test the new server before deploying it to production.

See: Nagios XI Licensing Policy
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
junkertf
Posts: 119
Joined: Tue Aug 08, 2017 1:52 am

Re: Migration bethween different versions (5.5.9 to 5.6.8)

Post by junkertf »

Hello,

So i upgrade first :)
All version is in game or just the mainline? Must i go to 5.6.9 on both or just must be 5.6 on?

I forgot these 3 pcs usage totally...

So if i not use the backup instance yet then i could use our licence key on our third server legally (not forgotten that i could not monitor anything on that server...!)

Thank you, best regards,

Ferenc
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Migration bethween different versions (5.5.9 to 5.6.8)

Post by benjaminsmith »

Hi Ferenc,

That's a good question. I'm checking into that right now. Our Log Server license only allows for 2 activations since the DR install is not required as it's a cluster. Practically speaking, the DR installation should not be required in this case.

Also, if you'd like to set up the new system with 5.5.9 we have all the previous versions of the software on the following page.

https://assets.nagios.com/downloads/nag ... rsions.php
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
junkertf
Posts: 119
Joined: Tue Aug 08, 2017 1:52 am

Re: Migration bethween different versions (5.5.9 to 5.6.8)

Post by junkertf »

Hello,

Actually i have already installed our new instance with version 5.6.8.
But in that case i could also use the link you've sended to upgrade to that version our prod 5.5.9 server.

Just to clarification for me, is it enough if i made a backup (for example a scheduled one) and i restore it on out new server?
It will migrate all the objects, settings and historical data into the new system?

Thank you, best regards,

Ferenc
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Migration bethween different versions (5.5.9 to 5.6.8)

Post by benjaminsmith »

Hello Ferenc,
Just to clarification for me, is it enough if i made a backup (for example a scheduled one) and i restore it on out new server?
It will migrate all the objects, settings and historical data into the new system?
Yes. That's right. You'll run the restore script and point it towards your backup archive and it will restore the objects, settings, databases and historical data. The process is explained on page 12 of the following guide:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
junkertf
Posts: 119
Joined: Tue Aug 08, 2017 1:52 am

Re: Migration bethween different versions (5.5.9 to 5.6.8)

Post by junkertf »

Hello,

i had upgraded our version to 5.6.8 from 5.5.7 and the first experience shows that the service check are workin well.
I have some difficulties with the performance data's, what's collection are stopped after the upgrade (and the restart after the upgrade)


Best regards,

Ferenc
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Migration bethween different versions (5.5.9 to 5.6.8)

Post by benjaminsmith »

Hi Ferenc,
I have some difficulties with the performance data's, what's collection are stopped after the upgrade (and the restart after the upgrade)
Is the performance data not collecting on all hosts and services or is it limited to a few checks ( if so which ones)? Can you send me a copy of the system profile from the new server? Thanks.

To send us your system profile.
Login to the Nagios XI GUI using a web browser
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
junkertf
Posts: 119
Joined: Tue Aug 08, 2017 1:52 am

Re: Migration bethween different versions (5.5.9 to 5.6.8)

Post by junkertf »

Hello,

I had make a bit serach what the current issue can be, and had found, that the .rrd files not updated well.

For example:

/app/nagios/share/perfdata/RSAW dir content:

[root@myhuslhqbpinagp MYHUSLHQBPRSAW1]# ls -la
total 16684
drwxrwxr-x+ 2 nagios nagios 4096 Jan 16 12:51 .
drwxrwxr-x+ 1846 nagios nagios 69632 Jan 16 08:55 ..
-rw-rw-r--+ 1 nagios nagios 384960 Jan 16 07:37 Check__boot_FS_usage.rrd
-rw-rw-r--+ 1 nagios nagios 2231 Jan 16 12:13 Check__boot_FS_usage.xml

same timestamps at the services on that host, .rrd is at arround 7:30 and .xml is up-to-date

i decided that i make a full OS reboot, after that the same directory shows the following state:

-rw-rw-r--+ 1 nagios nagios 384960 Jan 16 12:43 Check_root_FS_usage.rrd
-rw-rw-r--+ 1 nagios nagios 2212 Jan 16 12:50 Check_root_FS_usage.xml

I had sended you a yet created profile.

Thank you, best regards,

Ferenc
junkertf
Posts: 119
Joined: Tue Aug 08, 2017 1:52 am

Re: Migration bethween different versions (5.5.9 to 5.6.8)

Post by junkertf »

Hello again,

A second problem realized today at the test migration bethween our PROD node and new node.
I copyed the last night backup tu the new server and restored it.

[root@myhuslhqbpngxkp store]# /usr/local/nagiosxi/scripts/restore_xi.sh /app/store/nagiosxi.1579219202.tar.gz
tar: usr/local/nagiosxi/var/xi-sys.cfg: Not found in archive
tar: Exiting with failure status due to previous errors
tar: usr/local/nagiosxi/var/xi-sys.cfg: Not found in archive
tar: Exiting with failure status due to previous errors
TS=1579250144
Extracting backup to /store/backups/nagiosxi/1579250144-restore...
In /store/backups/nagiosxi/1579250144-restore/nagiosxi.1579219202...
Backup files look okay. Preparing to restore...
Shutting down services...
Restoring directories to /...
Restoring Nagios Core...
Restoring Nagios XI...
Restoring NRDP backups...
Restoring MRTG...
Restoring SNMP configuration files...
Restoring SNMP MIBs...
Restoring Nagvis backups...
Restoring nagios home dir...
Restoring MySQL databases...
Restoring Nagios XI MySQL database...
Restarting database servers...
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
Restoring Apache cronjobs...
Restoring logrotate config files...
Restoring Apache config files...
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

===============
RESTORE COMPLETE
===============

after (re)starting it, i can connect to the webinstance but it gives me error:

Database Error
A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.
Run the following from the CLI as root to attempt to repair the DB:

/usr/local/nagiosxi/scripts/repair_databases.sh

I had run the script well

===============
REPAIR COMPLETE
===============

=======================
nagios database repair succeeded
nagiosql database repair succeeded
nagiosxi database repair succeeded

but without any success because i cannot access the login window at the browser.

Thank you, best regards,

Ferenc
Locked