[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: add in sync retention facility ( Ton Voon, Opsera Ltd)

git at icinga.org git at icinga.org
Mon May 10 20:17:01 CEST 2010


Module: icinga-core
Branch: mfriedrich/core
Commit: a2002e0a0079b8360c98a910c64dc3000624399c
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=a2002e0a0079b8360c98a910c64dc3000624399c

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Mon May 10 20:16:28 2010 +0200

add in sync retention facility (Ton Voon, Opsera Ltd)

this allows to read saved sync.dat from master into
the slaves and update the status in case. this is
mainly meant for distributed systems and only affects
the core.

the automated generation of sync.dat is being done
using seperated scripting from opsview.
it's more or less OPT-IN, but we're gonna take it -
maybe it is possible to get opsview working with
icinga though.

    * stop icinga
    * get a host from retentation.dat and copy it to a new file named sync.dat
    * modify last_check into the future, and modify a param, e.g. is_flapping=1
    * start icinga
    * check if sync.dat gets removed
    * check the web for an update
    * stop icinga and check retention.dat for update

works as expected - retention.dat gets updated.

based on this feature people can sync their slaves with
the current master state, in case this is needed in a
distributed setup.

credits to ton voon and opsera.

fixes #412

---

 Changelog                       |    1 +
 base/commands.c                 |    6 +
 base/config.c                   |    2 +
 base/icinga.c                   |    1 +
 base/sretention.c               |   17 ++
 common/comments.c               |   21 ++-
 common/downtime.c               |   32 +++
 include/comments.h              |    2 +
 include/common.h                |    2 +
 include/downtime.h              |    1 +
 include/sretention.h            |    1 +
 sample-config/icinga.cfg.in     |   26 +++
 t-tap/smallconfig/nagios.cfg    |    2 +-
 t-tap/smallconfig/retention.dat |  249 ++++++++++++++++++++++++
 t-tap/test_nagios_config.c      |  397 +++++++++++++++++++++++++++++++++++++++
 xdata/xrddefault.c              |  175 +++++++++++++-----
 xdata/xrddefault.h              |    1 +
 17 files changed, 886 insertions(+), 50 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=a2002e0a0079b8360c98a910c64dc3000624399c




More information about the icinga-checkins mailing list