Page 1 of 2
Moving from CentOS to Ubuntu or fresh install?
Posted: Mon Oct 15, 2012 10:30 am
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?
Re: Moving from CentOS to Ubuntu or fresh install?
Posted: Mon Oct 15, 2012 12:48 pm
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.
Re: Moving from CentOS to Ubuntu or fresh install?
Posted: Tue Oct 16, 2012 7:25 am
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..
Re: Moving from CentOS to Ubuntu or fresh install?
Posted: Tue Oct 16, 2012 9:06 am
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.
Re: Moving from CentOS to Ubuntu or fresh install?
Posted: Tue Oct 16, 2012 10:06 am
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?
Re: Moving from CentOS to Ubuntu or fresh install?
Posted: Tue Oct 16, 2012 10:30 am
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.
Re: Moving from CentOS to Ubuntu or fresh install?
Posted: Tue Oct 16, 2012 10:53 am
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
Re: Moving from CentOS to Ubuntu or fresh install?
Posted: Tue Oct 16, 2012 11:09 am
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
to
This should resolve it, and you should be able to run it.
We have this fixed for the next release.
Re: Moving from CentOS to Ubuntu or fresh install?
Posted: Tue Oct 16, 2012 11:15 am
by scottwilkerson
As for the libmysqlclient.so.18 error, this machine does have Nagios XI installed on it already right?
Re: Moving from CentOS to Ubuntu or fresh install?
Posted: Tue Oct 16, 2012 11:19 am
by johndoe
yes it does have it installed, it's a brand new kvm guest