From 574524d1c732cd4d37193eed4a9d359fef9447bb Mon Sep 17 00:00:00 2001 From: z-eos Date: Thu, 12 Nov 2020 18:15:13 +0200 Subject: [PATCH] monitorix.cgi fix --- monitorix.cgi | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/monitorix.cgi b/monitorix.cgi index a0dc025..8f916af 100755 --- a/monitorix.cgi +++ b/monitorix.cgi @@ -496,18 +496,14 @@ EOF } if(($val ne "all" || $val ne "group") && $mode ne "multihost") { - push(@output, " \n"); - push(@output, "   Host: \n"); - push(@output, " \n"); + push(@output, "   Host: \n"); } if($val =~ m/group(\d+)/) { my $gnum = $1; my $gname = (split(',', $config{multihost}->{remotegroup_list}))[$gnum]; $gname = trim($gname); - push(@output, " \n"); - push(@output, "   $gname \n"); - push(@output, " \n"); + push(@output, "   $gname \n"); } push(@output, " \n"); @@ -536,14 +532,12 @@ EOF if($mode ne "multihost" || $graph ne "all" || $val eq "all") { print @output; - print("   $title  \n"); + print("   $title  \n"); print(" \n"); - print(" \n"); - print("   last $twhen  \n"); - print(" \n"); + print("   last $twhen  \n"); print(" \n"); print(" \n"); - print encode('utf-8', "

" . strftime("%a %b %e %H:%M:%S %Z %Y", localtime) . "

\n"); + print encode('utf-8', "

" . strftime("%a %b %e %H:%M:%S %Z %Y", localtime) . "

\n"); } }