# Now go through each host, and fill in the table.
foreach $group ( $self->groups() ) {
+ if ($main::GROUPS{$group->name()}->{'name'} eq 'break') {
+ print "\n";
+ next;
+ }
+
print substr( $group->name(), 0, 29 );
print " "x(30-length(substr($group->name(), 0, 29)));
# Now go through each host, and fill in the table.
foreach $group ( $self->groups() ) {
+ if ($main::GROUPS{$group->name()}->{'name'} eq 'break') {
+ print "\n";
+ next;
+ }
+
print substr( $group->name(), 0, 29 );
print " "x(30-length(substr($group->name(), 0, 29)));
# Now go through each host, and fill in the table.
foreach $group ( $self->groups() ) {
+ next if ($main::GROUPS{$group->name()}->{'name'} eq 'break');
+
print "-"x30, "-"x(($#names+1)*3), "\n";
print "Group: " . substr( $group->name(), 0, 29 ) . "\n";
my $name = $group->name();
my $grname = $main::GROUPS{$name}->{'name'};
+ if ($grname eq "break") {
+ print " <tr>\n";
+ print " <td align=center class=\"spong_hostgroups\">Host Group</td>\n";
+ print " <td class=\"spong_hostgroups\">Status</td>\n";
+ print " </tr>\n";
+ next;
+ }
+
print " <tr class=\"spong_hostgroups\">\n";
print " <th class=\"spong_hostgroups\"><a href=\"!!WWWSPONG!!/group/$name\" target=\"_top\">$grname</a></th>\n";
foreach $group ( $self->groups() ) {
my $name = $group->name();
my $grname = $main::GROUPS{$name}->{'name'};
+
+ if ($grname eq "break") {
+ print " <tr>";
+ print " <td align=center width=80 nowrap class=\"spong_hostgroups\"><b>Host Group</b></td>\n";
+ foreach $service ( @names ) {
+ print " <td align=center valign=bottom width=25 class=\"spong_hostgroups\">\n";
+ print "<font size=-1><a href=\"!!WWWSPONG!!/help/$service\">";
+ print "$service</a></font></td>\n";
+ }
+
+ print " </tr>\n\n";
+ next;
+ }
print " <tr class=\"spong_hostgroups\">\n";
print " <td class=\"spong_hostgroups_left\">\n";
my $name = $group->name();
my $grname = $main::GROUPS{$name}->{'name'};
+ next if ($grname eq "break");
+
# Display the host group table
# print "<a href=\"$main::WWWSPONG/group/$name\">";
print "\n<div class=\"spong_hostgroups_groupname\">Group - $grname</div><br />\n";