Page 1 of 1

Sync Slave Nagios

Posted: Thu Sep 24, 2015 2:43 am
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.

Re: Sync Slave Nagios

Posted: Thu Sep 24, 2015 3:51 pm
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.