DR setup for nagios core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
sunnynani4849
Posts: 31
Joined: Fri Jan 22, 2016 1:04 am

DR setup for nagios core

Post by sunnynani4849 »

Hi Team,

Could you, Please suggest me the best practice for the DR setup for the nagios core.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: DR setup for nagios core

Post 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.
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: DR setup for nagios core

Post by dwhitfield »

Thanks @mcapra!

For clarity, this is still planned. Unfortunately, I do not yet have a release date to give you.
sunnynani4849
Posts: 31
Joined: Fri Jan 22, 2016 1:04 am

Re: DR setup for nagios core

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: DR setup for nagios core

Post 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.
User avatar
Pitone_Maledetto
Posts: 69
Joined: Fri Jul 01, 2016 4:11 am
Location: Liverpool, United Kingdom

Re: DR setup for nagios core

Post 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
"It is impossible to work in information technology without also engaging in social engineering"
Jaron Lanier
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: DR setup for nagios core

Post by dwhitfield »

Thanks @Pitone_Maledetto!

I will note though that documentation is from 2005, so YMMV.
User avatar
Pitone_Maledetto
Posts: 69
Joined: Fri Jul 01, 2016 4:11 am
Location: Liverpool, United Kingdom

Re: DR setup for nagios core

Post 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
Last edited by Pitone_Maledetto on Fri Jun 30, 2017 1:16 pm, edited 1 time in total.
"It is impossible to work in information technology without also engaging in social engineering"
Jaron Lanier
User avatar
Pitone_Maledetto
Posts: 69
Joined: Fri Jul 01, 2016 4:11 am
Location: Liverpool, United Kingdom

Re: DR setup for nagios core

Post 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
"It is impossible to work in information technology without also engaging in social engineering"
Jaron Lanier
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: DR setup for nagios core

Post 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.
Locked