Joshua Megerman - 2007-04-10

Logged In: YES
user_id=216594
Originator: YES

And here's the fix - it took some debug code to figure out what to look for, but I got it :) The problem was setting the use flag on the various servicegroups outside the test to see if the servicegroup was actually being used... The patch below shows moving the line inside the if and resolving the problem (verified by checkig both the grouped instance and the main instance).

--- MonarchFile.pm.orig.2.0.2 2007-04-05 13:56:58.000000000 -0400
+++ MonarchFile.pm 2007-04-10 11:54:14.000000000 -0400
@@ -791,8 +791,9 @@
}
# for every entry of the service in a service group create an entry for each instance (i.e. label on group)
foreach my $sg (keys %service_groups) {
- $use{'servicegroups'}{$sg} = 1;
+# $use{'servicegroups'}{$sg} = 1;
if ($service_groups{$sg}{'hosts'}{$host_name{$host}}{$sid}) {
+ $use{'servicegroups'}{$sg} = 1;
$service_groups{$sg}{'members'} .= "$host,$svcdesc,";
}
}