<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma",sans-serif;
        mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Segoe UI",sans-serif;
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
p.BalloonText, li.BalloonText, div.BalloonText
        {mso-style-name:"Balloon Text";
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma",sans-serif;}
span.E-MailFormatvorlage23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1300763254;
        mso-list-type:hybrid;
        mso-list-template-ids:-952464514 182197624 201916419 201916421 201916417 201916419 201916421 201916417 201916419 201916421;}
@list l0:level1
        {mso-level-start-at:3;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Brandon,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">i think i can remember someone saying that this could be depending on the eMail client your are using.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">We had exactly the same with our Outlook environment: eMails coming from our Xymon system generated by html_mail.pl had a black background instead of a red one.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Adjusting the security settings (like embedded images…) of Outlook did not change anything. Might have to do with the way Outlook is rendering eMail content.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">When we did the test to another eMail address which was configured in Thunderbird eMail client, everything was fine.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I’m not sure if this matches to your problem, but it could be worth a try to test with another recipient using another eMail client.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Christian<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:DE">Christian Becker</span></b><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:DE"><br>
IT-Services<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:DE"><a href="mailto:Christian.Becker@rhein-zeitung.net"><span style="color:#0563C1">Christian.Becker@rhein-zeitung.net</span></a></span><u><span lang="EN-US" style="color:#0563C1;mso-fareast-language:DE"><o:p></o:p></span></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:DE">_________________________________</span><span lang="EN-US" style="color:#1F497D;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:10.0pt"><span style="font-size:7.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:DE">Mittelrhein-Verlag GmbH<br>
August-Horch-Straße 28<br>
D-56070 Koblenz</span><span style="color:#1F497D;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-top:2.0pt;line-height:10.0pt"><span style="font-size:7.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:DE">Verleger und Geschäftsführer: Walterpeter Twer<br>
Reg.-Gericht Koblenz HRB 121<br>
Finanzamt Koblenz Str.Nr. 22 65 10 285 2</span><span style="color:#1F497D;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:4.0pt"><span style="font-size:7.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:DE"><a href="http://www.rhein-zeitung.de/">www.rhein-zeitung.de</a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="mso-fareast-language:DE">Von:</span></b><span style="mso-fareast-language:DE"> Xymon [mailto:xymon-bounces@xymon.com]
<b>Im Auftrag von </b>Brandon Dale<br>
<b>Gesendet:</b> Mittwoch, 17. Dezember 2014 00:43<br>
<b>An:</b> xymon@xymon.com<br>
<b>Betreff:</b> [Xymon] html_mail.pl colour<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-AU">I am trying to setup HTML email alerts, I found this script on xymonton which appears to be exactly what I need
<a href="https://wiki.xymonton.org/doku.php/alerts:html_mail">https://wiki.xymonton.org/doku.php/alerts:html_mail</a> I followed the instructions and added it to my alerts.cfg.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">It successfully sends HTML emails, however it doesn’t seem to contain a colour to match the alert which I think it should? I assumed I would get a line down the left side similar to what you see on the xymon webpages.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">This is what I get emailed:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="mso-fareast-language:EN-AU"><img border="0" width="897" height="413" id="Picture_x0020_3" src="cid:image001.png@01D019D2.FCCACC80"></span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">If I look at the HTML source for the email I think based on this I can assume the scripts logic is successfully matching the alert colour to the correct .gif it needs:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="background:yellow;mso-highlight:yellow"><body background="<a href="cid:bkg-red.gif">cid:bkg-red.gif</a>"></span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU">I checked on the xymon server and these files appear to exist where they need to:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black">usr/lib/xymon/server/www/gifs# ls<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black">arrow.gif       bkg-red.gif      clear.gif          favicon-purple.ico   green-recent.gif   red-ack.gif         xymonbody.css<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black">bkg-blue.gif    bkg-yellow.gif   clear-recent.gif   favicon-red.ico      purple-ack.gif     red.gif             yellow-ack.gif<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black">bkg-clear.gif   blue-ack.gif     favicon-blue.ico   favicon-unknown.ico  purple.gif         red-recent.gif      yellow.gif<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black">bkg-green.gif   blue.gif         favicon-clear.ico  favicon-yellow.ico   purple-recent.gif  unknown.gif         yellow-recent.gif<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black">bkg-purple.gif  blue-recent.gif  favicon-green.ico  green.gif            README             unknown-recent.gif  zoom.gif<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black">Am I doing something obivously wrong? And how do I go about troubleshooting this<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black">Note: <o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><![if !supportLists]><span lang="EN-AU" style="color:black"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><![endif]><span lang="EN-AU" style="color:black">This example is from a custom test, but I don’t think that could be the cause of the problem as the script is determing the colour of the alert as expected.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo2"><![if !supportLists]><span lang="EN-AU" style="color:black"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><![endif]><span lang="EN-AU" style="color:black">Xymon 4.3.17 running on Debian 6<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-AU" style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:#000097">Brandon
</span></b><span lang="EN-AU" style="mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-AU"><o:p> </o:p></span></p>
</div>
</body>
</html>