[icinga-checkins] icinga.org: icinga2/feature/configconvert-2743: ConfigConvert: add more host/service attributes, groups

git at icinga.org git at icinga.org
Thu May 2 22:17:31 CEST 2013


Module: icinga2
Branch: feature/configconvert-2743
Commit: 26187a205371b97902ea5c2a9044f4d20fcde132
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=26187a205371b97902ea5c2a9044f4d20fcde132

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=26187a205371b97902ea5c2a9044f4d20fcde132




More information about the icinga-checkins mailing list