Page 2 of 2

Re: Nagios backupstipt and remote db's

Posted: Tue Oct 20, 2015 9:57 am
by tmcdonald
Let us know, yo, bro!

Re: Nagios backupstipt and remote db's

Posted: Tue Oct 20, 2015 12:31 pm
by benhank
Boink!

A looooong time ago there was a doc that detailed performing a manual restore of nagios. Does anyone have the link? or is thier an updated version available?

Re: Nagios backupstipt and remote db's

Posted: Tue Oct 20, 2015 3:59 pm
by rkennedy

Re: Nagios backupstipt and remote db's

Posted: Wed Oct 21, 2015 10:01 am
by benhank
How do I restore an XI backup that had an offloaded database to another XI server that has a different offloaded database server?

Additionally if I was restoring for testing purposes and my test server I am restoring to doesn't have an offloaded database server how do I restore the original backup to the test server?

Re: Nagios backupstipt and remote db's

Posted: Wed Oct 21, 2015 1:38 pm
by jdalrymple
benhank wrote:How do I restore an XI backup that had an offloaded database to another XI server that has a different offloaded database server?
Untar the backup, modify the config, retar. - that's a guess and would have to be tested in a lab, but I know of no reason why it wouldn't work.
benhank wrote:Additionally if I was restoring for testing purposes and my test server I am restoring to doesn't have an offloaded database server how do I restore the original backup to the test server?
Same process, just 'localhost' instead of 'offloaded dbhost'

Re: Nagios backupstipt and remote db's

Posted: Wed Oct 21, 2015 5:15 pm
by Box293
jdalrymple wrote:
benhank wrote:How do I restore an XI backup that had an offloaded database to another XI server that has a different offloaded database server?
Untar the backup, modify the config, retar. - that's a guess and would have to be tested in a lab, but I know of no reason why it wouldn't work.
benhank wrote:Additionally if I was restoring for testing purposes and my test server I am restoring to doesn't have an offloaded database server how do I restore the original backup to the test server?
Same process, just 'localhost' instead of 'offloaded dbhost'
I think the restore scripts need to be more accommodating for these situations. I tried exactly what you suggested last week and it was a real headache and I couldn't get it to work.

Feature request or bug report?

Re: Nagios backupstipt and remote db's

Posted: Sun Nov 08, 2015 10:56 pm
by Box293
I think I have found something that will be causing some issues with backups and restores.

In this file on your source server:

/usr/local/nagiosxi/var/xi-sys.cfg

Does it have a bunch of lines starting with:

cfg__

Re: Nagios backupstipt and remote db's

Posted: Tue Nov 10, 2015 4:07 pm
by pkarr
Hi Box 293,

benhank is out sick so I am taking over for him on this.

yes, there is xi-sys.cfg in /usr/local/nagiosxi/var on the source server
with a bunch of lines starting with cfg__

Interesting. What is it? I don't recall editing it.

I've included it as an attachment

Thanks,
Penny Karr | IT Infrastructure Monitoring
Harvard Vanguard Medical Associates, an Affiliate of Atrius Health
254 Second Avenue | Needham, MA 02494
P (781) 292-1853 | F (781 292-1980 | http://www.harvardvanguard.org
Email: [email protected]

Re: Nagios backupstipt and remote db's

Posted: Tue Nov 10, 2015 7:58 pm
by Box293
This file gets created/updated during a full install or upgrade. We've recently found with the newer versions of XI that it is being populated with all of these cfg__ values and this in turn is affecting the backup and restore process (it won't be affecting your current backups though, don't be alarmed).

I'm doing some testing on a beta version of XI so once I get my head around this I'll get back to you and Ben once I've got a better idea.