[icinga-checkins] icinga.org: icinga2/feature/configconvert-2743: configconvert: add a note about servicedeps wildcards todo

git at icinga.org git at icinga.org
Tue May 28 20:13:19 CEST 2013


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Tue May 28 20:00:15 2013 +0200

configconvert: add a note about servicedeps wildcards todo

refs #4010

---

 contrib/configconvert/Icinga2/Convert.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/contrib/configconvert/Icinga2/Convert.pm b/contrib/configconvert/Icinga2/Convert.pm
index 1cb4132..8d8c054 100644
--- a/contrib/configconvert/Icinga2/Convert.pm
+++ b/contrib/configconvert/Icinga2/Convert.pm
@@ -1281,6 +1281,10 @@ sub convert_2x {
         my $master_service_description = $obj_1x_servicedependency->{'service_description'};
         my $child_service_description = $obj_1x_servicedependency->{'dependent_service_description'};
 
+        # XXX object tricks allow more here
+        # - comma seperated list of service descriptions on a single *host_name
+        # - wildcard * for all services on a single *host_name
+
         # go through all child hosts, and get the service object by host_name and our single service_description
         foreach my $child_host_name (@child_host_names) {
             my $child_service_obj = obj_get_service_obj_by_host_name_service_description($cfg_obj_2x, "__I2CONVERT_SERVICE_HOSTNAME", "__I2CONVERT_SERVICEDESCRIPTION", $child_host_name, $child_service_description); 





More information about the icinga-checkins mailing list