Hi,
We are looking for a high availability (failover) solution for Nagios XI. We have 2 sites to be monitored by Nagios XI and the filtered trap messages need to be sent to 3rd party monitoring tool. Can you please suggest what will be the best high availability solution to monitor site A and B using Nagios XI.
High Availability
Re: High Availability
Have you taken a look at our High Availability Options documentation?
Former Nagios employee
-
deepavaidya
- Posts: 80
- Joined: Sun Oct 06, 2013 8:23 am
Re: High Availability
We have installed Nagios XI in CentOS 6. I want to have a master and slave setup where the salve just monitors the master and takes over the master if master is down. Should this setup have a shared database ? How do we syncronize their data ?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: High Availability
Presently a shared db is not possible. Most likely the best option would be to forward checks from your main installation to the secondary, this will cause all results and perfdata to be shared between them. Additionally you can do either freshness checking or find a way to enable active checks if the main system goes down, on the secondary to enforce failover. By forwarding checks, you would also ensure that any services that need to be added to the secondary system would be in unconfigured objects, making adding them especially easy.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
deepavaidya
- Posts: 80
- Joined: Sun Oct 06, 2013 8:23 am
Re: High Availability
Hi
I just went through this PPT http://www.slideshare.net/nagiosinc/mike-weber-failover
I have few doubts regarding this.
1) Will all the configurations (creating user, creating template) also be replicated from master to slave ? (service and Host check transferred using NSCA)
2) When the Master comes up again, will the configurations and history be synced from slave to master ?
3) If I have a global manager nagios console to display the alerts from separate nagios monitoring individual site, will there be separate license for the global manager though it does not monitor any.
I just went through this PPT http://www.slideshare.net/nagiosinc/mike-weber-failover
I have few doubts regarding this.
1) Will all the configurations (creating user, creating template) also be replicated from master to slave ? (service and Host check transferred using NSCA)
2) When the Master comes up again, will the configurations and history be synced from slave to master ?
3) If I have a global manager nagios console to display the alerts from separate nagios monitoring individual site, will there be separate license for the global manager though it does not monitor any.
-
deepavaidya
- Posts: 80
- Joined: Sun Oct 06, 2013 8:23 am
Re: High Availability
Hi
For the solution discussed in my previous post, where the master shares the service & host check history with the slave to avoid double polling, how does the SNMP configuration be for the monitored hosts, should they send traps to both the nagios (master & slave) everytime ? Can you also please give me some in-depth technical details of how the DB replication would work in this case ?
For the solution discussed in my previous post, where the master shares the service & host check history with the slave to avoid double polling, how does the SNMP configuration be for the monitored hosts, should they send traps to both the nagios (master & slave) everytime ? Can you also please give me some in-depth technical details of how the DB replication would work in this case ?
-
deepavaidya
- Posts: 80
- Joined: Sun Oct 06, 2013 8:23 am
Re: High Availability
Please can you also let me know how the end user can be prevented from knowing about the failover, I mean how will the url be dynamically changed. Please can you suggest the best possible solution for this also.
Re: High Availability
Yes, at the point you make teh slave. Additional configs should be updated using weber's method, the postgres may not be.deepavaidya wrote: 1) Will all the configurations (creating user, creating template) also be replicated from master to slave ? (service and Host check transferred using NSCA)
Puppet or an offloaded mysql database would handle config replication. Hostory should be saved with rsync or again with an offloaded db.deepavaidya wrote:2) When the Master comes up again, will the configurations and history be synced from slave to master ?
Yes. You should look at nagios fusion.deepavaidya wrote: 3) If I have a global manager nagios console to display the alerts from separate nagios monitoring individual site, will there be separate license for the global manager though it does not monitor any.
Yes. Any passive checks need to report to both server ips.deepavaidya wrote:should they send traps to both the nagios (master & slave) everytime ?
I am not quite sure what you are looking for here. We provide a document for offloading the db, so you could just move the mysql databases to another server cluster. With postgres or a non-offloaded mysql solution, you need to backup the databases periodically to update them on the slave/master.deepavaidya wrote:Can you also please give me some in-depth technical details of how the DB replication would work in this case ?
http://assets.nagios.com/downloads/nagi ... Server.pdf
This is essentially dns/routing/apache question. It all depends on the environment. You can control it with routing, though dynamic dns may be a better option. Do you have internal dsn servers in your environment?deepavaidya wrote:Please can you also let me know how the end user can be prevented from knowing about the failover, I mean how will the url be dynamically changed.
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.
"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.
-
deepavaidya
- Posts: 80
- Joined: Sun Oct 06, 2013 8:23 am
Re: High Availability
Hi,
Thank you so much for your answers. Please can let me know if there is any document available to follow this approach apart from the PPT ? Is the NSCA which is mentioned is already installed with Nagios XI only needs to be configured ?
Thank you so much for your answers. Please can let me know if there is any document available to follow this approach apart from the PPT ? Is the NSCA which is mentioned is already installed with Nagios XI only needs to be configured ?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: High Availability
Beyond that slide-show we do not have further documentation on this, that was from a conference attendee at our Wold Conference. NSCA is installed on all XI systems by default and it need only be configured to forward checks:
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf