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

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

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

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

More information about the icinga-checkins mailing list