fixed to not rely only with the ENV{HOSTNAME} variable to get the hostname on 'emailreports' graph

This commit is contained in:
Jordi Sanfeliu 2013-08-22 10:28:56 +02:00
parent 43221c0376
commit 13b68e7712
1 changed files with 2 additions and 1 deletions

View File

@ -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>&nbsp;&nbsp;$ENV{HOSTNAME}&nbsp;&nbsp;</b></font> <font size='5'><b>&nbsp;&nbsp;$hostname&nbsp;&nbsp;</b></font>
</font> </font>
</td> </td>
<td bgcolor='777777'> <td bgcolor='777777'>