rsync downtime between Primary and Secondary Nagios servers
Posted: Thu Feb 16, 2017 5:13 pm
I opened similar question in R1 a while back. May be due to my Nagios server version changed, I found rsync /var/nagios/retention.dat from primary to seconday doesn't work anymore.
Current setup
Primary: Naigos server 4.1.1 in EST timezone.
Secondary: Nagios server 4.2.4 in CST timezone, active checks on all host in Primary but with alert notification disabled.
I am using shell script wrap around rsync command to sync both object/*.cfg, servers/*.cfg and /var/nagios/retention.cfg
Also nagios.cfg has following setting to speed up(from 90 to 1 min) the retention sync from memory into retention.dat file.
The current problem is that when I put a host on primary Nagios,after 5 minutes with a rsync of retention.dat
the secondary won't display the same host in downtime mode.
Q1: Is retention.dat the only file I need to sync between two Nagios server ?
Q2: Do I need to sync status.dat also ?
R1: https://support.nagios.com/forum/viewto ... t=downtime
Current setup
Primary: Naigos server 4.1.1 in EST timezone.
Secondary: Nagios server 4.2.4 in CST timezone, active checks on all host in Primary but with alert notification disabled.
I am using shell script wrap around rsync command to sync both object/*.cfg, servers/*.cfg and /var/nagios/retention.cfg
Also nagios.cfg has following setting to speed up(from 90 to 1 min) the retention sync from memory into retention.dat file.
Code: Select all
[me@nagios01 nagios]$ egrep '^retention|^state_retention_file' nagios.cfg
state_retention_file=/var/nagios/retention.dat
retention_update_interval=1
[me@nagios01 nagios]$
the secondary won't display the same host in downtime mode.
Q1: Is retention.dat the only file I need to sync between two Nagios server ?
Q2: Do I need to sync status.dat also ?
R1: https://support.nagios.com/forum/viewto ... t=downtime