monitorix.cgi fix

This commit is contained in:
z-eos 2020-11-12 18:15:13 +02:00
parent 2e8a2d2764
commit 574524d1c7
1 changed files with 5 additions and 11 deletions

View File

@ -496,18 +496,14 @@ EOF
}
if(($val ne "all" || $val ne "group") && $mode ne "multihost") {
push(@output, " <td class='td-title'>\n");
push(@output, " <font size='5'><b>&nbsp;&nbsp;Host:&nbsp;</b></font>\n");
push(@output, " </td>\n");
push(@output, " <th class='td-title'><b>&nbsp;&nbsp;Host:&nbsp;</b></th>\n");
}
if($val =~ m/group(\d+)/) {
my $gnum = $1;
my $gname = (split(',', $config{multihost}->{remotegroup_list}))[$gnum];
$gname = trim($gname);
push(@output, " <td class='td-title-host' >\n");
push(@output, " <font size='5'><b>&nbsp;&nbsp;$gname&nbsp;</b></font>\n");
push(@output, " </td>\n");
push(@output, " <th class='td-title-host' ><b>&nbsp;&nbsp;$gname&nbsp;</b></td>\n");
}
push(@output, " <td class='td-title-host' >\n");
@ -536,14 +532,12 @@ EOF
if($mode ne "multihost" || $graph ne "all" || $val eq "all") {
print @output;
print(" <font size='5'><b>&nbsp;&nbsp;$title&nbsp;&nbsp;</b></font>\n");
print(" <b>&nbsp;&nbsp;$title&nbsp;&nbsp;</b>\n");
print(" </td>\n");
print(" <td class='td-title' >\n");
print(" <font size='5'><b>&nbsp;&nbsp;last&nbsp;$twhen&nbsp;&nbsp;</b></font>\n");
print(" </td>\n");
print(" <td class='td-title' ><b>&nbsp;&nbsp;last&nbsp;$twhen&nbsp;&nbsp;</b></td>\n");
print(" </tr>\n");
print(" </table>\n");
print encode('utf-8', " <h4 class='text-title'><font color='#888888'>" . strftime("%a %b %e %H:%M:%S %Z %Y", localtime) . "</h4>\n");
print encode('utf-8', " <h4 class='text-title'>" . strftime("%a %b %e %H:%M:%S %Z %Y", localtime) . "</h4>\n");
}
}