mirror of https://github.com/mikaku/Monitorix.git
fixed to not rely only with the ENV{HOSTNAME} variable to get the hostname on 'emailreports' graph
This commit is contained in:
parent
43221c0376
commit
13b68e7712
|
@ -40,6 +40,7 @@ sub emailreports_send {
|
||||||
|
|
||||||
logger("$myself: sending $report reports.");
|
logger("$myself: sending $report reports.");
|
||||||
|
|
||||||
|
my $hostname = $ENV{HOSTNAME} ? $ENV{HOSTNAME} : `hostname`;
|
||||||
my $html = <<"EOF";
|
my $html = <<"EOF";
|
||||||
<html>
|
<html>
|
||||||
<body bgcolor='FFFFFF' vlink='#888888' link='#888888'>
|
<body bgcolor='FFFFFF' vlink='#888888' link='#888888'>
|
||||||
|
@ -52,7 +53,7 @@ sub emailreports_send {
|
||||||
</td>
|
</td>
|
||||||
<td bgcolor='FFFFFF'>
|
<td bgcolor='FFFFFF'>
|
||||||
<font face='Verdana, sans-serif' color='000000'>
|
<font face='Verdana, sans-serif' color='000000'>
|
||||||
<font size='5'><b> $ENV{HOSTNAME} </b></font>
|
<font size='5'><b> $hostname </b></font>
|
||||||
</font>
|
</font>
|
||||||
</td>
|
</td>
|
||||||
<td bgcolor='777777'>
|
<td bgcolor='777777'>
|
||||||
|
|
Loading…
Reference in New Issue