mirror of https://github.com/mikaku/Monitorix.git
monitorix.cgi fix
This commit is contained in:
parent
2e8a2d2764
commit
574524d1c7
|
@ -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> Host: </b></font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " <th class='td-title'><b> Host: </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> $gname </b></font>\n");
|
||||
push(@output, " </td>\n");
|
||||
push(@output, " <th class='td-title-host' ><b> $gname </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> $title </b></font>\n");
|
||||
print(" <b> $title </b>\n");
|
||||
print(" </td>\n");
|
||||
print(" <td class='td-title' >\n");
|
||||
print(" <font size='5'><b> last $twhen </b></font>\n");
|
||||
print(" </td>\n");
|
||||
print(" <td class='td-title' ><b> last $twhen </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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue