Naxios xi High availbility light (config sync)

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
Andreas_c_Schmidt
Posts: 23
Joined: Mon Sep 24, 2012 10:03 am

Naxios xi High availbility light (config sync)

Post by Andreas_c_Schmidt »

Hi, another Question around xi.

with all its databases, is there any way to sync its configuration from 1 node to another to keep the checks in sync?

I tried to copy the nagios/etc with its cfg files to a ready configured xi server and restarted nagiosxi (no I didnt use the import feature) but it doesn't look right. I see them all in the Service "detail view" but not in the legacy core config (nagiosql or legacy)

The idea was that Nagios01 is running and checking and when it fails Nagios02 which is checking with the same configuration too will start the notification.
All I like is to ensure that the Configurations are the same (since the human error of forgetting to make the change twice it is too compelling).

Shouldn't it be enough to have the etc/cfg files and to restart nagiosxi to reread them? At this point I'm not too interested in historical data of the checks

A backup and restore does mess with the license and with the hostname so this appears not to be a runner cause I cant find where this is stored to be changed.

It would be similar to a migration of xi to another hostname (maybe there is an option for the restore)

Anyone with a hint here please ? Thanks Andreas
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Naxios xi High availbility light (config sync)

Post by abrist »

xi uses a database to save its configs. Once the configs are applied, xi reads the configuration from the database and writes the config files out. This means every time you "apply configuration" in xi, you will overwrite those files. Additionally, any changes made in xi's CCM will not exist in the configs until they are written out. You may want to look at the high availability document: http://assets.nagios.com/downloads/nagi ... ptions.pdf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Andreas_c_Schmidt
Posts: 23
Joined: Mon Sep 24, 2012 10:03 am

Re: Naxios xi High availbility light (config sync)

Post by Andreas_c_Schmidt »

Thanks abrist, I had a look to the described solutions but none of those would apply to the client.

2 Physical boxes and there is no shared storage or whatsoever. With DRDB I'm sure it will be the same issue as with syncing the config since I need to install the config into the second server on a failover (unless I configure them with one VIP and Vhostname. The active/ active is pretty ok and I even gather the performance data twice and a service handler enable or disable the notifications. I just need to find a way to keep the config in sync.

Is there any full blown design DOC for what Database does what when where and why? I was thinking about the mysql cluster but there is no such for the postgress DB. But I thought postgress is for the nagiosql anyway. Would I need it or can I replay it from Mysql?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Naxios xi High availbility light (config sync)

Post by abrist »

Well, you could offload the sql database, and then make a custom script to check if the main xi box is up. When it goes down, you could then connect the second xi box to the offloaded databse and continue where you left off. You would have to configure the second box with rollover ip/dns to preserve the viability of remote host plugins. It could be done.

http://assets.nagios.com/downloads/nagi ... Server.pdf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.