DR Setup for NagiosXI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

DR Setup for NagiosXI

Post by rajasegar »

Do you guys have any documentation on possible DR setups for Nagios XI.

This DR will be a 1 to 1 equivalent cold site. We would like to keep both PROD & DR in sync via automation.
To complicate matters we have 3 instances using PostgreSQL and 1 instance using MySQL only.

Please advice on the best method to go about syncing the following
1. Configurations
2. RRD files
3. Databases
4. status.dat

Thanks
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: DR Setup for NagiosXI

Post by mcapra »

This document has some initial suggestions:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

And there was a presentation at a previous Nagios conference by a former support tech on this topic:
https://www.youtube.com/watch?v=KW5Qkl8brcA

LINBIT offers some technical docs that might be of use if DRBD is a tool you're interested in leveraging:
https://www.linbit.com/en/576-ha-nagios ... -on-rhel7/

The documentation is a bit thin though. Built-in high availability is something that is on the Nagios Core 5 roadmap, which I imagine will eventually make it's way into XI in some form or another.
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: DR Setup for NagiosXI

Post by cdienger »

Thanks for the links, @mcapra!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: DR Setup for NagiosXI

Post by rajasegar »

mcapra wrote:This document has some initial suggestions:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

And there was a presentation at a previous Nagios conference by a former support tech on this topic:
https://www.youtube.com/watch?v=KW5Qkl8brcA

LINBIT offers some technical docs that might be of use if DRBD is a tool you're interested in leveraging:
https://www.linbit.com/en/576-ha-nagios ... -on-rhel7/

The documentation is a bit thin though. Built-in high availability is something that is on the Nagios Core 5 roadmap, which I imagine will eventually make it's way into XI in some form or another.
Thanks. Most of it is more of a HA setup where else my setup is at 2 different locations.
Anyone else has any other inputs?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: DR Setup for NagiosXI

Post by gormank »

I use a couple scripts to sync my live systems to standby systems. The main script runs from cron so the standby can be 5 minutes (or whatever the cron runs) older, but the NXI DB and configuration is pretty static, I don't see it as an issue. This takes care of numbers 1 and 3 in your list. Status.dat and RRD files can be synced w/ rcopy, but as RRD files change frequently, there might be an issue there.
The script takes a backup of the DB on the primary, restores it on the standby and then applies the config to write config files.
The standby has monitoring disabled until the primary fails and failover is manual... The license agreement says a secondary system shouldn't be actively monitoring or something like that. The cron on the primary would need to be disabled when a failure occurs.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: DR Setup for NagiosXI

Post by cdienger »

Thanks for the input, @gormank!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: DR Setup for NagiosXI

Post by rajasegar »

gormank wrote:I use a couple scripts to sync my live systems to standby systems. The main script runs from cron so the standby can be 5 minutes (or whatever the cron runs) older, but the NXI DB and configuration is pretty static, I don't see it as an issue. This takes care of numbers 1 and 3 in your list. Status.dat and RRD files can be synced w/ rcopy, but as RRD files change frequently, there might be an issue there.
The script takes a backup of the DB on the primary, restores it on the standby and then applies the config to write config files.
The standby has monitoring disabled until the primary fails and failover is manual... The license agreement says a secondary system shouldn't be actively monitoring or something like that. The cron on the primary would need to be disabled when a failure occurs.
Thanks for the input.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: DR Setup for NagiosXI

Post by cdienger »

@rajasegar - did you want to keep this open in case anyone else chimes in or are we okay to lock it?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: DR Setup for NagiosXI

Post by rajasegar »

cdienger wrote:@rajasegar - did you want to keep this open in case anyone else chimes in or are we okay to lock it?
Let keep it open for a week.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: DR Setup for NagiosXI

Post by scottwilkerson »

rajasegar wrote:
cdienger wrote:@rajasegar - did you want to keep this open in case anyone else chimes in or are we okay to lock it?
Let keep it open for a week.
Sounds good
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked