[icinga-checkins] icinga.org: icinga2/mfriedrich/config: WIP configconversion: rewrite recursive lookup of linked host_name/service_description

git at icinga.org git at icinga.org
Mon Apr 8 11:20:14 CEST 2013


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Fri Mar 15 17:09:56 2013 +0100

WIP configconversion: rewrite recursive lookup of linked host_name/service_description

this is a mess. configs may just use "name" instead of "host_name" on
type "host", same goes for service and service_descriptions. well, and
if it's a template, "name" is populated too.

the algorithm is not clean enough, and does not scale at all. there are
bugs, and the hostgroup linking is not yet taken into account too.

basics host -> service dumping of v2 config is implemented.

refs #2743

---

 contrib/configconvert/convertv1_v2.pl |  248 +++++++++++++++++++++++++++++----
 1 files changed, 218 insertions(+), 30 deletions(-)

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




More information about the icinga-checkins mailing list