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

git at icinga.org git at icinga.org
Thu Apr 4 23:17:17 CEST 2013

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

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=daa1ba2a84f01736b0bb4474fa9d1cd736519d3b

More information about the icinga-checkins mailing list