Page 1 of 2

upgrade and migrate to a VM

Posted: Mon Oct 17, 2016 9:13 pm
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?

Re: upgrade and migrate to a VM

Posted: Tue Oct 18, 2016 10:15 am
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!

Re: upgrade and migrate to a VM

Posted: Wed Jan 18, 2017 2:11 am
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

Re: upgrade and migrate to a VM

Posted: Wed Jan 18, 2017 11:49 am
by avandemore
That sounds like a good plan. It should work without issue.

Re: upgrade and migrate to a VM

Posted: Thu Feb 09, 2017 12:59 am
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.

Re: upgrade and migrate to a VM

Posted: Thu Feb 09, 2017 5:08 pm
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.

Re: upgrade and migrate to a VM

Posted: Fri Feb 10, 2017 9:40 am
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..

Re: upgrade and migrate to a VM

Posted: Sun Feb 12, 2017 10:10 pm
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)?

Re: upgrade and migrate to a VM

Posted: Mon Feb 13, 2017 2:45 pm
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.

Re: upgrade and migrate to a VM

Posted: Wed Feb 15, 2017 12:19 am
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.