Page 1 of 2

<<Rebuilding our Nagios XI Network Monitor>>

Posted: Sun May 27, 2012 1:08 pm
by uhiadmin
From: UHAUL Network Operations

Linux Distribution and version?
1. Cent OS 6.2 / 64 Bit
2. Manual Install
3. Gnome installed

To Nagios XI Tech Support Specialist:
We are building a new Network Monitor Server just in case our primary one fails. Plus we need to develop our experience and skill of building a Nagios Server since the individual who established it left the company. I just wanted know what data to extract to place on the new Nagios Server. Eventually, I would like to work towards setting up a load balance after we build our new server successfully and factory default the primary one and establish the new one successfully first. So far, we just did a new full installation on the new server after installing the CENT OS 6.2 Platform. Please provide me with some direction on what to do here. Thank you in advance for your assistance.

Re: <<Rebuilding our Nagios XI Network Monitor>>

Posted: Tue May 29, 2012 9:17 am
by scottwilkerson
If I was building a backup, I would install a fresh XI server
http://library.nagios.com/library/produ ... -nagios-xi

Then run a backup on the current server, copy over the backup and run the restore on the new machine
http://library.nagios.com/library/produ ... -nagios-xi

Re: <<Rebuilding our Nagios XI Network Monitor>>

Posted: Tue May 29, 2012 7:04 pm
by uhiadmin
Scott,
Thank you for responding back quick on this one. I appreciate your guidance. So, I will give it a try.

Re: <<Rebuilding our Nagios XI Network Monitor>>

Posted: Tue May 29, 2012 7:14 pm
by uhiadmin
Can we use the same license key from the old server and use it on the new one when we pull the old one off our network???

Re: <<Rebuilding our Nagios XI Network Monitor>>

Posted: Wed May 30, 2012 9:04 am
by scottwilkerson
If they have the same IP address, yes.

Re: <<Rebuilding our Nagios XI Network Monitor>>

Posted: Wed May 30, 2012 6:47 pm
by uhiadmin
If we do use the new server, can we utilize the trial version which has about 57 days left on it before we place it on the old ip address.

new: 172.x.x.164
old: 172.x.x.163

Re: <<Rebuilding our Nagios XI Network Monitor>>

Posted: Wed May 30, 2012 7:51 pm
by uhiadmin
Is there any possibility that we can use the same license with a new ip address after we shut down the old one?

new: 172.x.x.164
old: 172.x.x.163

Re: <<Rebuilding our Nagios XI Network Monitor>>

Posted: Wed May 30, 2012 11:15 pm
by uhiadmin
Getting error on the backup:

Last login: Wed May 30 17:01:22 2012 from 2ncssw214.uhi.amerco
[root@fldmon ~]# /usr/local/nagiosxi/scripts/backup_xi.sh
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/share/perfdata/741028/_HOST_.rrd: file changed as we read it
tar: /usr/local/nagios/share/perfdata/761074/_HOST_.rrd: file changed as we read it
tar: /usr/local/nagios/var/ndo.sock: socket ignored
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MySQL databases...
mysqldump: Got error: 144: Table './nagios/nagios_logentries' is marked as crashed and last (automatic?) repair failed when using LOCK TABLES
Error backing up MySQL database 'nagios' - check the password in this script!
You have new mail in /var/spool/mail/root
[root@fldmon ~]#

Re: <<Rebuilding our Nagios XI Network Monitor>>

Posted: Thu May 31, 2012 7:54 am
by scottwilkerson
Run

Code: Select all

cd /usr/local/nagiosxi/scripts
./repairmysql.sh nagios
Then try the backup again

Re: <<Rebuilding our Nagios XI Network Monitor>>

Posted: Thu May 31, 2012 10:47 am
by uhiadmin
Thanks Scott,
I will try that during the evening and let you know the results.