[icinga-checkins] icinga.org: icinga2/feature/configconvert-2743: ConfigConvert: split into modules, add objects.cache read, dump cmd line

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


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Tue Apr  2 18:54:41 2013 +0200

ConfigConvert: split into modules, add objects.cache read, dump cmd line

basically it works with

- dumping a host with all services, using templates
- check_command and all arguments/user macros translation
- reading the objects.cache file location from icinga.cfg
=> this is reserved only for getting dedicated relations
=> we do not want to duplicate the work of xodtemplate.c in perl here
- all important functions have been split up into their respective
  modules in order to support better re-usage (i.e. lconfexport)

still missing important bits:

- detect service->group<-host links and build templates
- detect other ugly template methods
- dump templates
- the ugly deprecated normal|retry_check_interval mapping
- timeperiod mapping
- contact => user mapping
- notifications rework (dedicated object)
- dependencies, escalations (to be documented/implemented)
- the infamous rest

---

 contrib/configconvert/Icinga2.pm                  |   35 +
 contrib/configconvert/Icinga2/Convert.pm          |  569 ++++++++++++
 contrib/configconvert/Icinga2/DumpIcinga2Cfg.pm   |  106 +++
 contrib/configconvert/Icinga2/ImportIcinga1Cfg.pm |  253 ++++++
 contrib/configconvert/Icinga2/Utils.pm            |   84 ++
 contrib/configconvert/convertv1_v2.pl             |  977 ---------------------
 contrib/configconvert/icinga2_convert_v1_v2.pl    |   67 ++
 7 files changed, 1114 insertions(+), 977 deletions(-)

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




More information about the icinga-checkins mailing list