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.");
|
||||
|
||||
my $hostname = $ENV{HOSTNAME} ? $ENV{HOSTNAME} : `hostname`;
|
||||
my $html = <<"EOF";
|
||||
<html>
|
||||
<body bgcolor='FFFFFF' vlink='#888888' link='#888888'>
|
||||
|
@ -52,7 +53,7 @@ sub emailreports_send {
|
|||
</td>
|
||||
<td bgcolor='FFFFFF'>
|
||||
<font face='Verdana, sans-serif' color='000000'>
|
||||
<font size='5'><b> $ENV{HOSTNAME} </b></font>
|
||||
<font size='5'><b> $hostname </b></font>
|
||||
</font>
|
||||
</td>
|
||||
<td bgcolor='777777'>
|
||||
|
|
Loading…
Reference in New Issue