Page 1 of 1

Nagios XI failover design

Posted: Tue Nov 06, 2018 11:48 am
by MOHANREDDY
Hi,

I have been working on designing failover/failback scenario in our organisation. As of now have database offloaded to a separate server, and master-master replication in place for Databases.

we are planning to fail over if any service is down for a while(more than 10 mins) or host is down failover to secondary server and failback to primary when everything is good ?

so what all service and configuration we need to take care off ?
and also to stop duplicate monitoring from secondary server what services should be stopped on secondary server?
To keep both Primary and secondary servers in sync what all config files and logs should be synced and how often they needs to be in sync?


Thanks,

Re: Nagios XI failover design

Posted: Tue Nov 06, 2018 5:06 pm
by cdienger
We don't support failover implementations directly but it isn't uncommon for customers to make backups of their primary server and import it into their secondary in case of failure. This would be a manual failover or require additional scripting/set up in the environment to automate it.

Backup and restore:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

High Availability:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Document from Linbit stepping though HA setup:
https://www.linbit.com/en/576-ha-nagios ... -on-rhel7/

"High Availability and Failover Solutions for Nagios XI" presentation from 2014 conference:
https://www.youtube.com/watch?v=KW5Qkl8brcA

Re: Nagios XI failover design

Posted: Wed Nov 07, 2018 9:41 am
by MOHANREDDY
ok, Thanks

we have been implementing failover with our automated scripts. To avoid Monitoring from secondary server what all services has to be stopped?

Re: Nagios XI failover design

Posted: Wed Nov 07, 2018 3:27 pm
by cdienger
The nagios service would need to be stopped to disable monitoring:

service nagios stop