[icinga-checkins] icinga.org: icinga2/mfriedrich/config: ConfigConvert: improved template handling, host/service dump 2x

git at icinga.org git at icinga.org
Wed Apr 3 19:10:50 CEST 2013


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Wed Apr  3 15:06:06 2013 +0200

ConfigConvert: improved template handling, host/service dump 2x

refactored code again, removed nested loop bottlenecks. still, the
resolval of host_name/service_description requires more love.

templates are now correctly detected, linked, and printed in 2x syntax.
service templates are _not_ linked against host definitions in 2x as
this is not possible.

commands for hosts do not exist in 2x, therefore the command_name of an
1x host will be taken and guessed against its related services. if
there's a match, the service will be linked as 2x 'hostcheck'.

*_interval still needs proper handling, as the default interval is 1m,
but 2x requires the identifier.

---

 contrib/configconvert/Icinga2/Convert.pm        |  224 ++++++++++++++++-------
 contrib/configconvert/Icinga2/DumpIcinga2Cfg.pm |   78 ++++++++-
 2 files changed, 229 insertions(+), 73 deletions(-)

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




More information about the icinga-checkins mailing list