Moving from CentOS to Ubuntu or fresh install?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Moving from CentOS to Ubuntu or fresh install?

Post by johndoe »

Hi all, was wondering what's the general advice regarding moving an existing NagiosXI installation from CentOS to Ubuntu.

Would it be easier/best to:

A) Move the installation from CentOS to Ubuntu
B) Install from scratch on Ubuntu and move the data only

In the best case can any of the mods point me on the right direction of documentation regarding which steps to follow?
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Moving from CentOS to Ubuntu or fresh install?

Post by lmiltchev »

We do not support Nagios XI on Ubuntu:

http://support.nagios.com/wiki/index.ph ... tributions

If you did this, you would be on your own, in regards to support.
Be sure to check out our Knowledgebase for helpful articles and solutions!
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Moving from CentOS to Ubuntu or fresh install?

Post by johndoe »

Damn, was expecting NagiosXI to be distro-independent now that's a stab in the heart...
Any predictions in to when this could be supported? I guess I'll have to stick with CentOS on that box then although all our other machines will be migrated to Ubuntu, great Nagios.. Great..
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Moving from CentOS to Ubuntu or fresh install?

Post by scottwilkerson »

As of right now, it has at most been "discussed", I would not expect to see an Ubuntu distribution in the very near future, however, longer term one is likely to emerge.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Moving from CentOS to Ubuntu or fresh install?

Post by johndoe »

Ok, going back to the original question now on centos, what do i need to migrate from one machine to the new install? any pointers?
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Moving from CentOS to Ubuntu or fresh install?

Post by scottwilkerson »

Here is our doc on backing up and restoring

http://library.nagios.com/library/produ ... -nagios-xi

One thing to note is that the doc references .zip files but newer versions of XI may use .tar.gz files.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Moving from CentOS to Ubuntu or fresh install?

Post by johndoe »

Code: Select all

[root@host ~]# cat /etc/issue
CentOS release 6.3 (Final)
Kernel \r on an \m

[root@host ~]# uname -a
Linux host 2.6.32-279.9.1.el6.x86_64 #1 SMP Tue Sep 25 21:43:11 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@host ~]# arch
x86_64
[root@host ~]# /usr/local/nagiosxi/scripts/restore_xi.sh /root/1350401907.tar.gz
arch: invalid option -- 'm'
Try `arch --help' for more information.
Error detecting architecture.
[...] Removed the -m manually [...]
[root@host ~]# /usr/local/nagiosxi/scripts/restore_xi.sh /root/1350401907.tar.gz
Error detecting architecture.
[...] Removed the whole case check and it worked kind of... [...]
Starting ndo2db:/usr/local/nagios/bin/ndo2db: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
 done.
Starting nagios: done.

===============
RESTORE COMPLETE
===============
I believe the latter "Error" is due to the kernel tweaks that are needed according to the faq's though
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Moving from CentOS to Ubuntu or fresh install?

Post by scottwilkerson »

I'm sorry about that, that is a bug you found.

if you can edit /usr/local/nagiosxi/scripts/restore_xi.sh changing line 35 from

Code: Select all

arch=$(arch -m)
to

Code: Select all

arch=$(uname -m)
This should resolve it, and you should be able to run it.

We have this fixed for the next release.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Moving from CentOS to Ubuntu or fresh install?

Post by scottwilkerson »

As for the libmysqlclient.so.18 error, this machine does have Nagios XI installed on it already right?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: Moving from CentOS to Ubuntu or fresh install?

Post by johndoe »

yes it does have it installed, it's a brand new kvm guest
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
Locked