<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; } @font-face { font-family: Wingdings; } @font-face { font-family: Calibri; } @font-face { font-family: Tahoma; } p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; } a:link, span.MsoHyperlink { color: blue; text-decoration: underline; } a:visited, span.MsoHyperlinkFollowed { color: purple; text-decoration: underline; } p.MsoAcetate, li.MsoAcetate, div.MsoAcetate { margin: 0cm 0cm 0.0001pt; font-size: 8pt; font-family: Tahoma, sans-serif; } p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph { margin: 0cm 0cm 0.0001pt 36pt; font-size: 11pt; font-family: Calibri, sans-serif; } span.EmailStyle17 { font-family: Calibri, sans-serif; color: windowtext; } span.BalloonTextChar { font-family: Tahoma, sans-serif; } .MsoChpDefault { font-family: Calibri, sans-serif; } @page WordSection1 { margin: 72pt; } ol { margin-bottom: 0cm; } ul { margin-bottom: 0cm; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>You probably need to tweak the perl code to use the full url for your Xymon server...something like <br>
</p>
<p><br>
</p>
<p><body background="http://example.com/xymon/gifs/bkg-red.gif"><br>
</p>
<p><br>
</p>
<p>Of course, the script says it's embedding it in the message so I'm likely off base here.<br>
</p>
<p><br>
</p>
<p>=G=<br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Xymon <xymon-bounces@xymon.com> on behalf of Brandon Dale <bdale@kitchen-net.com.au><br>
<b>Sent:</b> Tuesday, December 16, 2014 6:42 PM<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> [Xymon] html_mail.pl colour</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">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.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">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.
</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">This is what I get emailed:</p>
<p class="MsoNormal"><span style=""><img border="0" width="897" height="413" id="Picture_x0020_3" src="cid:image001.png@01D019DE.64A62AB0"></span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">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:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="background:yellow"><body background="cid:bkg-red.gif"></span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I checked on the xymon server and these files appear to exist where they need to:</p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:black">usr/lib/xymon/server/www/gifs# ls</span></p>
<p class="MsoNormal"><span style="color:black">arrow.gif       bkg-red.gif      clear.gif          favicon-purple.ico   green-recent.gif   red-ack.gif         xymonbody.css</span></p>
<p class="MsoNormal"><span style="color:black">bkg-blue.gif    bkg-yellow.gif   clear-recent.gif   favicon-red.ico      purple-ack.gif     red.gif             yellow-ack.gif</span></p>
<p class="MsoNormal"><span style="color:black">bkg-clear.gif   blue-ack.gif     favicon-blue.ico   favicon-unknown.ico  purple.gif         red-recent.gif      yellow.gif</span></p>
<p class="MsoNormal"><span style="color:black">bkg-green.gif   blue.gif         favicon-clear.ico  favicon-yellow.ico   purple-recent.gif  unknown.gif         yellow-recent.gif</span></p>
<p class="MsoNormal"><span style="color:black">bkg-purple.gif  blue-recent.gif  favicon-green.ico  green.gif            README             unknown-recent.gif  zoom.gif</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:black">Am I doing something obivously wrong? And how do I go about troubleshooting this</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><span style="color:black">Note: </span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="color:black"><span style="">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><span 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.</span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="color:black"><span style="">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><span style="color:black">Xymon 4.3.17 running on Debian 6</span></p>
<p class="MsoNormal"><span style="color:black"> </span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:#000097">Brandon
</span></b><span style=""></span></p>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</body>
</html>