diff --git a/monitorix.cgi b/monitorix.cgi index 36861d5..feb2edc 100755 --- a/monitorix.cgi +++ b/monitorix.cgi @@ -181,6 +181,9 @@ sub graph_header { push(@output, " \n"); push(@output, " \n"); push(@output, " \n"); + if(lc($config{enable_parallelizing} || "") ne "y") { + print @output; + } return @output; } @@ -189,6 +192,9 @@ sub graph_footer { push(@output, " \n"); push(@output, "\n"); + if(lc($config{enable_parallelizing} || "") ne "y") { + print @output; + } return @output; } @@ -574,10 +580,10 @@ if($mode eq "localhost") { while($children--) { waitpid(-1, 0); # wait for all children } -# foreach (split(',', $config{graph_name})) { -# my $gn = trim($_); + foreach (split(',', $config{graph_name})) { + my $gn = trim($_); # print @{$outputs{$gn}} if $outputs{$gn}; -# } + } } } elsif($mode eq "multihost") {