mirror of https://github.com/mikaku/Monitorix.git
fixed to show the real hostname in the emailreports
This commit is contained in:
parent
8232acd943
commit
666aa475b1
|
@ -40,7 +40,9 @@ sub emailreports_send {
|
|||
|
||||
logger("$myself: sending $report reports.");
|
||||
|
||||
my $hostname = $ENV{HOSTNAME} ? $ENV{HOSTNAME} : `hostname`;
|
||||
my $uri = URI->new($emailreports->{url_prefix});
|
||||
my $hostname = $uri->host;
|
||||
|
||||
my $html = <<"EOF";
|
||||
<html>
|
||||
<body bgcolor='FFFFFF' vlink='#888888' link='#888888'>
|
||||
|
|
Loading…
Reference in New Issue