mirror of https://github.com/mikaku/Monitorix.git
fixed to put the output of the 'addendum_script' in the right place, and avoiding being repeated on each graph in the 'emailreports' graph
This commit is contained in:
parent
4256b31375
commit
01baaf86e9
|
@ -143,10 +143,15 @@ EOF
|
||||||
$html .= join("\n", @tmp);
|
$html .= join("\n", @tmp);
|
||||||
$html .= "<br>";
|
$html .= "<br>";
|
||||||
|
|
||||||
|
$data =~ s/<!-- graph table begins -->.*?<!-- graph table ends -->//;
|
||||||
|
$e++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# addendum data included in report
|
# addendum data included in report
|
||||||
if($emailreports->{$report}->{addendum_script}) {
|
if($emailreports->{$report}->{addendum_script}) {
|
||||||
$html .= <<"EOF";
|
$html .= <<"EOF";
|
||||||
<table cellspacing='5' cellpadding='0' width='1' bgcolor='CCCCCC' border='1'>
|
<table cellspacing='5' cellpadding='0' width='100%' bgcolor='CCCCCC' border='1'>
|
||||||
<tr>
|
<tr>
|
||||||
<td bgcolor='777777'>
|
<td bgcolor='777777'>
|
||||||
<font face='Verdana, sans-serif' color='CCCC00'>
|
<font face='Verdana, sans-serif' color='CCCC00'>
|
||||||
|
@ -164,11 +169,6 @@ EOF
|
||||||
$html .= "</table>\n";
|
$html .= "</table>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$data =~ s/<!-- graph table begins -->.*?<!-- graph table ends -->//;
|
|
||||||
$e++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$html .= $html_footer;
|
$html .= $html_footer;
|
||||||
|
|
||||||
# create the multipart container and add attachments
|
# create the multipart container and add attachments
|
||||||
|
|
Loading…
Reference in New Issue