<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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
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";
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.balloontextchar0
        {mso-style-name:balloontextchar;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle27
        {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;}
--></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 bgcolor="white" lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi David,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I can confirm I am actually using the latest version that you last changed, version 1.4.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Sorry I must have linked an older version in my original email.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Regards,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#000097;mso-fareast-language:EN-US">Brandon
</span></b><span style="font-size:8.0pt;color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt;line-height:115%"><span style="color:#1F497D"><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 #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> David Baldwin [mailto:david.baldwin@ausport.gov.au]
<br>
<b>Sent:</b> Wednesday, 17 December 2014 11:55 AM<br>
<b>To:</b> Brandon Dale; Galen Johnson; xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] html_mail.pl colour<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Brandon,<br>
<br>
Did you look at the newer version?<br>
<a href="https://wiki.xymonton.org/doku.php/alerts:html_mail1.2">https://wiki.xymonton.org/doku.php/alerts:html_mail1.2</a><br>
<br>
David.<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#1F497D">Just gave that a try changed the paths to use the URL and also tried the full local path on the server without using those BB/xymon variables in the perl script still getting the same problem. I must be missing
 something really obvious somewhere.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US">Regards,
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#000097;mso-fareast-language:EN-US">Brandon
</span></b><o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Galen Johnson [<a href="mailto:Galen.Johnson@sas.com">mailto:Galen.Johnson@sas.com</a>]
<br>
<b>Sent:</b> Wednesday, 17 December 2014 11:16 AM<br>
<b>To:</b> Brandon Dale; <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
<b>Subject:</b> RE: html_mail.pl colour</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif"">You probably need to tweak the perl code to use the full url for your Xymon server...something like </span><o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif""> </span><o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif""><body background="<a href="http://example.com/xymon/gifs/bkg-red.gif">http://example.com/xymon/gifs/bkg-red.gif</a>"></span><o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif""> </span><o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif"">Of course, the script says it's embedding it in the message so I'm likely off base here.</span><o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif""> </span><o:p></o:p></p>
<p><span style="font-family:"Calibri","sans-serif"">=G=</span><o:p></o:p></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;color:#212121">
<hr size="2" width="98%" align="center">
</span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b>From:</b> Xymon <<a href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a>> on behalf of Brandon Dale <<a href="mailto:bdale@kitchen-net.com.au">bdale@kitchen-net.com.au</a>><br>
<b>Sent:</b> Tuesday, December 16, 2014 6:42 PM<br>
<b>To:</b> <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
<b>Subject:</b> [Xymon] html_mail.pl colour<span style="font-size:12.0pt;color:#212121">
</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#212121"> </span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:#212121">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.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121">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. </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121">This is what I get emailed:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121"><img border="0" width="897" height="413" id="Picture_x0020_3" src="cid:image001.png@01D019F1.56A26380"></span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121">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:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121;background:yellow"><body background="<a href="cid:bkg-red.gif">cid:bkg-red.gif</a>"></span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121">I checked on the xymon server and these files appear to exist where they need to:</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">usr/lib/xymon/server/www/gifs# ls<o:p></o:p></p>
<p class="MsoNormal">arrow.gif       bkg-red.gif      clear.gif          favicon-purple.ico   green-recent.gif   red-ack.gif         xymonbody.css<o:p></o:p></p>
<p class="MsoNormal">bkg-blue.gif    bkg-yellow.gif   clear-recent.gif   favicon-red.ico      purple-ack.gif     red.gif             yellow-ack.gif<o:p></o:p></p>
<p class="MsoNormal">bkg-clear.gif   blue-ack.gif     favicon-blue.ico   favicon-unknown.ico  purple.gif         red-recent.gif      yellow.gif<o:p></o:p></p>
<p class="MsoNormal">bkg-green.gif   blue.gif         favicon-clear.ico  favicon-yellow.ico   purple-recent.gif  unknown.gif         yellow-recent.gif<o:p></o:p></p>
<p class="MsoNormal">bkg-purple.gif  blue-recent.gif  favicon-green.ico  green.gif            README             unknown-recent.gif  zoom.gif<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Am I doing something obivously wrong? And how do I go about troubleshooting this<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Note: <o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt">-<span style="font-size:7.0pt">         
</span>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></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt">-<span style="font-size:7.0pt">         
</span>Xymon 4.3.17 running on Debian 6<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#000097">Brandon
</span></b><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121"> </span><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Xymon mailing list<o:p></o:p></pre>
<pre><a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><o:p></o:p></pre>
<pre><a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>David Baldwin - Senior Systems Administrator (Datacentres + Networks)<o:p></o:p></pre>
<pre>Information and Communication Technology Services<o:p></o:p></pre>
<pre>Australian Sports Commission          <a href="http://ausport.gov.au">http://ausport.gov.au</a><o:p></o:p></pre>
<pre>Tel 02 62147266 Fax 02 62141830       PO Box 176 Belconnen ACT 2616<o:p></o:p></pre>
<pre><a href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a>          1 Leverrier Street Bruce ACT 2617<o:p></o:p></pre>
<pre>Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE<o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">Keep up to date with what's happening in Australian sport visit
<a href="http://www.ausport.gov.au">www.ausport.gov.au</a> <br>
<br>
</span><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution,
 copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<hr size="2" width="100%" align="center">
</span></div>
</div>
</body>
</html>