Page 1 of 2

DR setup for nagios core

Posted: Wed Jun 28, 2017 1:58 am
by sunnynani4849
Hi Team,

Could you, Please suggest me the best practice for the DR setup for the nagios core.

Re: DR setup for nagios core

Posted: Wed Jun 28, 2017 8:28 am
by mcapra
It would depend on the setup. I know native high-availability was a planned feature for Nagios Core 5.

VM-level snapshots can be super duper simple disaster recovery for quite literally any single machine.

If all you have is a vanilla Nagios Core 4 installation, is the time required to re-compile Nagios Core from scratch acceptable? If so, just backup your configuration files. Or keep them on a netshare and make them available to your fail-over instance.

Re: DR setup for nagios core

Posted: Wed Jun 28, 2017 12:53 pm
by dwhitfield
Thanks @mcapra!

For clarity, this is still planned. Unfortunately, I do not yet have a release date to give you.

Re: DR setup for nagios core

Posted: Thu Jun 29, 2017 8:16 pm
by sunnynani4849
Hi dwhitfield,

In our current environment we are using Nagios core version 4. Am planning to do rsync between nagios production server to other nagios backup server.
What are the folders required to be in rsync from Nagios production server to Nagios backup server. Please help me with this.

Re: DR setup for nagios core

Posted: Fri Jun 30, 2017 9:16 am
by dwhitfield
It's impossible to say without looking at your nagios.cfg.

If I were you, what I would do is run the two following commands as root:

Code: Select all

cd /
find . -name *nagios*
rsync every *directory* that shows up.

You might thing that find / -name *nagios* would do it, but depending on your security and drive mappings, that may give an incomplete list.

Re: DR setup for nagios core

Posted: Fri Jun 30, 2017 10:51 am
by Pitone_Maledetto
Hi,
I found this document since I am too looking at some kind of DR or HA solution.
Hope it helps.

http://nagios.sourceforge.net/download/ ... sHA_EN.pdf

Re: DR setup for nagios core

Posted: Fri Jun 30, 2017 11:51 am
by dwhitfield
Thanks @Pitone_Maledetto!

I will note though that documentation is from 2005, so YMMV.

Re: DR setup for nagios core

Posted: Fri Jun 30, 2017 1:11 pm
by Pitone_Maledetto
Sure @dwhitfield, the concept proves that it might still can be done.
I have not had time to go through it all but very soon I will spin some VMs hosting a new Nagios Core set-up (as staging environment) with mode-gearman for load balancing and will have a go on trying if that documentation still applies.
Thanks for your input.
Regards

Re: DR setup for nagios core

Posted: Fri Jun 30, 2017 1:15 pm
by Pitone_Maledetto
On a side note; what DB engine does Nagios Core use?
Is it possible to install Nagios Core and make it use a different DB engine like PostgreSQL for example?
Thanks

Re: DR setup for nagios core

Posted: Fri Jun 30, 2017 1:29 pm
by dwhitfield
Pitone_Maledetto wrote:On a side note; what DB engine does Nagios Core use?
By itself, Nagios does not use a database. If you'd like to go into more detail about using NDO with Core, that should go in a separate thread. Feel free to link to that thread in this one though.