Sync Slave Nagios

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.
Locked
andy70
Posts: 1
Joined: Thu Sep 24, 2015 2:28 am

Sync Slave Nagios

Post by andy70 »

Hi,

Is it possible to keep a slave Nagios server sync'ed to a Master Nagios server?

In the scenario we are trying to build, the slave server has sync'ed configuration but relies on the Master server to do all the active checks. The slave cannot conduct actual checks (due to network restrictions) therefore requires the Master to update it's state. We are planning on using the slave for access from the public internet - we do not want our internal Nagios accessible from the public internet.

I was hoping to copy the retention.dat and use SYNC_STATE_INFORMATION command. This doesn't update the state.

It appears that a sync_retention file must be generated and transferred from the Master to the Slave. Is this correct? How do I generate the sync file??

Thanks,
Andrew.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Sync Slave Nagios

Post by ssax »

As long as you're not using NDOUtils you should be able to copy all the configs under /usr/local/nagios/etc (minus the nagios.cfg or any other files you want to keep different), stop nagios, copy the /usr/local/nagios/var/retention.dat file and start the nagios process. Keep an eye on file permissions though.
Locked