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

git at icinga.org git at icinga.org
Tue Apr 2 19:00:24 CEST 2013


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

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




More information about the icinga-checkins mailing list