[icinga-checkins] icinga.org: icinga2/mfriedrich/config: ConfigConvert: add more host/ service attributes, groups

git at icinga.org git at icinga.org
Mon Apr 8 11:20:15 CEST 2013


Module: icinga2
Branch: mfriedrich/config
Commit: b3796b98b1ac303800a652c5adcfa5bb2906df68
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=b3796b98b1ac303800a652c5adcfa5bb2906df68

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Thu Apr  4 20:33:29 2013 +0200

ConfigConvert: add more host/service attributes, groups

*_interval are automatically mapped, while the *groups attribute it
converted into an array in order to easily stash more groups on it.

still a todo - loop over existing groups and re-link their members into
the respective objects, as 2.x only supports that location.

fix for the host->service relation - use the already processed service
2x hashref in order to do some magic with host->{'SERVICE'} = service

all 2x attributes are now encapsulated with "", to stay safe.
todo - more generic config 2x dump.

furthermore, add some more code comments for the respective sections.

refs #2743

---

 contrib/configconvert/Icinga2/Convert.pm        |  223 +++++++++++++++++++----
 contrib/configconvert/Icinga2/DumpIcinga2Cfg.pm |  172 +++++++++++++++++-
 2 files changed, 352 insertions(+), 43 deletions(-)

Diff:   https://git.icinga.org/?p=icinga2.git;a=commitdiff;h=b3796b98b1ac303800a652c5adcfa5bb2906df68




More information about the icinga-checkins mailing list