upgrade and migrate to a VM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
justine
Posts: 45
Joined: Mon Oct 29, 2012 9:06 pm

upgrade and migrate to a VM

Post by justine »

Hello. We would like to migrate our NagiosXI from 2014R2.6 to Nagios 5. It is currently in a physical machine. We would like to move this server to a VM machine. Please advise what are the things we should consider before moving Nagios DB to a VM?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: upgrade and migrate to a VM

Post by dwhitfield »

For moving the servers, https://assets.nagios.com/downloads/nag ... ios-XI.pdf should help.

Here is some information on virtual machines: https://assets.nagios.com/downloads/nag ... _Notes.pdf.

Please let us know if you need additional information!
justine
Posts: 45
Joined: Mon Oct 29, 2012 9:06 pm

Re: upgrade and migrate to a VM

Post by justine »

Hi dwhitfield,
From CentOS 5, we would like to use CentOS 6 on our VM, where we plan to move Nagios. Any steps that I should do first before I move Nagios in its new OS? Once Nagios works in VM, then I will upgrade to XI 5.4
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: upgrade and migrate to a VM

Post by avandemore »

That sounds like a good plan. It should work without issue.
Previous Nagios employee
justine
Posts: 45
Joined: Mon Oct 29, 2012 9:06 pm

Re: upgrade and migrate to a VM

Post by justine »

After moving our Nagios to VM and have it upgraded, reports like Host Availability are not showing up. Graph is empty. Please advise how to fix this.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: upgrade and migrate to a VM

Post by tgriep »

It looks like something went wrong in the upgrade. Depending on how the upgrade was run, the log file would be in one of these locations.
Can you post them here so we can view them?

Code: Select all

/tmp/nagiosxi/upgrade.log
/usr/local/nagiosxi/tmp/upgrade.log
Could you also post or PM me your System Profile?
To get 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 post or email it in.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: upgrade and migrate to a VM

Post by tgriep »

I found this error is the upgrade.log file

Code: Select all

Error: Could not find a service matching host name 'ls01' and description 'Flexlm License Port 5280' (config file '/usr/local/nagios/etc/servicegroups.cfg', starting on line 37)
What I am guessing is that this error is causing nagios to not load the rest of the configurations so this error needs to be corrected.
Go in to Core Config Manager and verify that the host exists and if so, check that servicegroup and make sure it's settings are correct by either creating that host of removing the servicegroup all together..
Be sure to check out our Knowledgebase for helpful articles and solutions!
justine
Posts: 45
Joined: Mon Oct 29, 2012 9:06 pm

Re: upgrade and migrate to a VM

Post by justine »

Hi tgriep,
I fixed this error on servicegroup but the reports are still not working. Now what I did was create a test server to isolate the problem. I encountered an error restoring database in it. I probably did not notice this error before.
NPCD started.
Starting ndo2db:/usr/local/nagios/bin/ndo2db: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory. done.
Starting nagios: done.
================
RESTORE COMPLETE
=================

Please advise why I encountered this error with ndo2db. I'm wondering if this error is related to switching to different OS (from CentOS 5 to CentOS 6)?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: upgrade and migrate to a VM

Post by tgriep »

It looks like one of the MYSQL required packaged is not installed in your server. Login as root to the server and run the following to install them.

Code: Select all

yum install mysql-libs
yum install mysql-devel
After that, see if ndo2db will load on the system.
Be sure to check out our Knowledgebase for helpful articles and solutions!
justine
Posts: 45
Joined: Mon Oct 29, 2012 9:06 pm

Re: upgrade and migrate to a VM

Post by justine »

Sadly, I still encounter that error with NDO2DB. I tried to revert from snapshot, to start from scratch, but I always get that error whenever I restore our database to VM.
I did command the installation of mysql-libs and mysql-devel. It says that it was already installed.

When I restart ndo2db, it's giving me this error:
service ndo2db start
Starting ndo2db:/usr/local/nagios/bin/ndo2db: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory

On the system profile, it says: ndo2db is not running but subsystem locked
Backend Database is not working as well.

I already fixed the error about flexlm license before I backup and restored the database.

please help.
current nagios is in centOS 5.11 and is running in a physical server.
we would like to move it to centOS 6.9 which is running in VM.
Nagiosxi is in 2014r2.6.
Locked