html_mail.pl colour
list Brandon Dale
I am trying to setup HTML email alerts, I found this script on xymonton which appears to be exactly what I need https://wiki.xymonton.org/doku.php/alerts:html_mail I followed the instructions and added it to my alerts.cfg. 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. This is what I get emailed: [cid:image001.png at 01D019DE.64A62AB0] 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: <body background="cid:bkg-red.gif"> I checked on the xymon server and these files appear to exist where they need to: usr/lib/xymon/server/www/gifs# ls arrow.gif bkg-red.gif clear.gif favicon-purple.ico green-recent.gif red-ack.gif xymonbody.css bkg-blue.gif bkg-yellow.gif clear-recent.gif favicon-red.ico purple-ack.gif red.gif yellow-ack.gif bkg-clear.gif blue-ack.gif favicon-blue.ico favicon-unknown.ico purple.gif red-recent.gif yellow.gif bkg-green.gif blue.gif favicon-clear.ico favicon-yellow.ico purple-recent.gif unknown.gif yellow-recent.gif bkg-purple.gif blue-recent.gif favicon-green.ico green.gif README unknown-recent.gif zoom.gif Am I doing something obivously wrong? And how do I go about troubleshooting this Note: - 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. - Xymon 4.3.17 running on Debian 6 Brandon
list Galen Johnson
You probably need to tweak the perl code to use the full url for your Xymon server...something like <body background="http://example.com/xymon/gifs/bkg-red.gif">; Of course, the script says it's embedding it in the message so I'm likely off base here. =G=
▸
From: Xymon <xymon-bounces at xymon.com> on behalf of Brandon Dale <user-f310199f5cc6@xymon.invalid> Sent: Tuesday, December 16, 2014 6:42 PM To: xymon at xymon.com Subject: [Xymon] html_mail.pl colour I am trying to setup HTML email alerts, I found this script on xymonton which appears to be exactly what I need https://wiki.xymonton.org/doku.php/alerts:html_mail I followed the instructions and added it to my alerts.cfg. 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. This is what I get emailed: [cid:image001.png at 01D019DE.64A62AB0] 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: <body background="cid:bkg-red.gif"> I checked on the xymon server and these files appear to exist where they need to: usr/lib/xymon/server/www/gifs# ls arrow.gif bkg-red.gif clear.gif favicon-purple.ico green-recent.gif red-ack.gif xymonbody.css bkg-blue.gif bkg-yellow.gif clear-recent.gif favicon-red.ico purple-ack.gif red.gif yellow-ack.gif bkg-clear.gif blue-ack.gif favicon-blue.ico favicon-unknown.ico purple.gif red-recent.gif yellow.gif bkg-green.gif blue.gif favicon-clear.ico favicon-yellow.ico purple-recent.gif unknown.gif yellow-recent.gif bkg-purple.gif blue-recent.gif favicon-green.ico green.gif README unknown-recent.gif zoom.gif Am I doing something obivously wrong? And how do I go about troubleshooting this Note: - 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. - Xymon 4.3.17 running on Debian 6 Brandon
list Brandon Dale
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. Regards, Brandon
▸
From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid] Sent: Wednesday, 17 December 2014 11:16 AM To: Brandon Dale; xymon at xymon.com Subject: RE: html_mail.pl colour You probably need to tweak the perl code to use the full url for your Xymon server...something like <body background="http://example.com/xymon/gifs/bkg-red.gif">; Of course, the script says it's embedding it in the message so I'm likely off base here. =G= From: Xymon <xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>> on behalf of Brandon Dale <user-f310199f5cc6@xymon.invalid<mailto:user-f310199f5cc6@xymon.invalid>> Sent: Tuesday, December 16, 2014 6:42 PM To: xymon at xymon.com<mailto:xymon at xymon.com> Subject: [Xymon] html_mail.pl colour I am trying to setup HTML email alerts, I found this script on xymonton which appears to be exactly what I need https://wiki.xymonton.org/doku.php/alerts:html_mail I followed the instructions and added it to my alerts.cfg. 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. This is what I get emailed:
[cid:image001.png at 01D019EC.8E747F00]
▸
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:
<body background="cid:bkg-red.gif">
I checked on the xymon server and these files appear to exist where they need to:
usr/lib/xymon/server/www/gifs# ls
arrow.gif bkg-red.gif clear.gif favicon-purple.ico green-recent.gif red-ack.gif xymonbody.css
bkg-blue.gif bkg-yellow.gif clear-recent.gif favicon-red.ico purple-ack.gif red.gif yellow-ack.gif
bkg-clear.gif blue-ack.gif favicon-blue.ico favicon-unknown.ico purple.gif red-recent.gif yellow.gif
bkg-green.gif blue.gif favicon-clear.ico favicon-yellow.ico purple-recent.gif unknown.gif yellow-recent.gif
bkg-purple.gif blue-recent.gif favicon-green.ico green.gif README unknown-recent.gif zoom.gif
Am I doing something obivously wrong? And how do I go about troubleshooting this
Note:
- 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.
- Xymon 4.3.17 running on Debian 6
Brandon
list David Baldwin
Brandon, Did you look at the newer version? https://wiki.xymonton.org/doku.php/alerts:html_mail1.2 David.
▸
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. Regards, *Brandon *
*From:*Galen Johnson [mailto:user-87f955643e3d@xymon.invalid]
▸
*Sent:* Wednesday, 17 December 2014 11:16 AM *To:* Brandon Dale; xymon at xymon.com *Subject:* RE: html_mail.pl colour You probably need to tweak the perl code to use the full url for your Xymon server...something like <body background="http://example.com/xymon/gifs/bkg-red.gif">; Of course, the script says it's embedding it in the message so I'm likely off base here. =G=
*From:*Xymon <xymon-bounces at xymon.com <mailto:xymon-bounces at xymon.com>> on behalf of Brandon Dale <user-f310199f5cc6@xymon.invalid <mailto:user-f310199f5cc6@xymon.invalid>>
*Sent:* Tuesday, December 16, 2014 6:42 PM
*To:* xymon at xymon.com <mailto:xymon at xymon.com>
▸
*Subject:* [Xymon] html_mail.pl colour I am trying to setup HTML email alerts, I found this script on xymonton which appears to be exactly what I need https://wiki.xymonton.org/doku.php/alerts:html_mail I followed the instructions and added it to my alerts.cfg. 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. This is what I get emailed: 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: <body background="cid:bkg-red.gif"> I checked on the xymon server and these files appear to exist where they need to: usr/lib/xymon/server/www/gifs# ls arrow.gif bkg-red.gif clear.gif favicon-purple.ico green-recent.gif red-ack.gif xymonbody.css bkg-blue.gif bkg-yellow.gif clear-recent.gif favicon-red.ico purple-ack.gif red.gif yellow-ack.gif bkg-clear.gif blue-ack.gif favicon-blue.ico favicon-unknown.ico purple.gif red-recent.gif yellow.gif bkg-green.gif blue.gif favicon-clear.ico favicon-yellow.ico purple-recent.gif unknown.gif yellow-recent.gif bkg-purple.gif blue-recent.gif favicon-green.ico green.gif README unknown-recent.gif zoom.gif Am I doing something obivously wrong? And how do I go about troubleshooting this Note: -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. -Xymon 4.3.17 running on Debian 6 *Brandon *
--
David Baldwin - Senior Systems Administrator (Datacentres + Networks) Information and Communication Technology Services Australian Sports Commission http://ausport.gov.au Tel 02 62147266 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid 1 Leverrier Street Bruce ACT 2617 Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au 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.
list Brandon Dale
Hi David, I can confirm I am actually using the latest version that you last changed, version 1.4. Sorry I must have linked an older version in my original email. Regards, Brandon
▸
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid] Sent: Wednesday, 17 December 2014 11:55 AM To: Brandon Dale; Galen Johnson; xymon at xymon.com Subject: Re: [Xymon] html_mail.pl colour Brandon, Did you look at the newer version? https://wiki.xymonton.org/doku.php/alerts:html_mail1.2 David. 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. Regards, Brandon From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid] Sent: Wednesday, 17 December 2014 11:16 AM To: Brandon Dale; xymon at xymon.com<mailto:xymon at xymon.com> Subject: RE: html_mail.pl colour You probably need to tweak the perl code to use the full url for your Xymon server...something like <body background="http://example.com/xymon/gifs/bkg-red.gif">; Of course, the script says it's embedding it in the message so I'm likely off base here. =G= From: Xymon <xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>> on behalf of Brandon Dale <user-f310199f5cc6@xymon.invalid<mailto:user-f310199f5cc6@xymon.invalid>> Sent: Tuesday, December 16, 2014 6:42 PM To: xymon at xymon.com<mailto:xymon at xymon.com> Subject: [Xymon] html_mail.pl colour I am trying to setup HTML email alerts, I found this script on xymonton which appears to be exactly what I need https://wiki.xymonton.org/doku.php/alerts:html_mail I followed the instructions and added it to my alerts.cfg. 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. This is what I get emailed:
[cid:image001.png at 01D019F1.56A26380]
▸
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: <body background="cid:bkg-red.gif"> I checked on the xymon server and these files appear to exist where they need to: usr/lib/xymon/server/www/gifs# ls arrow.gif bkg-red.gif clear.gif favicon-purple.ico green-recent.gif red-ack.gif xymonbody.css bkg-blue.gif bkg-yellow.gif clear-recent.gif favicon-red.ico purple-ack.gif red.gif yellow-ack.gif bkg-clear.gif blue-ack.gif favicon-blue.ico favicon-unknown.ico purple.gif red-recent.gif yellow.gif bkg-green.gif blue.gif favicon-clear.ico favicon-yellow.ico purple-recent.gif unknown.gif yellow-recent.gif bkg-purple.gif blue-recent.gif favicon-green.ico green.gif README unknown-recent.gif zoom.gif Am I doing something obivously wrong? And how do I go about troubleshooting this Note: - 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. - Xymon 4.3.17 running on Debian 6 Brandon -- David Baldwin - Senior Systems Administrator (Datacentres + Networks) Information and Communication Technology Services Australian Sports Commission http://ausport.gov.au Tel 02 62147266 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid<mailto:user-cbbf693f2c89@xymon.invalid> 1 Leverrier Street Bruce ACT 2617 Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE Keep up to date with what's happening in Australian sport visit www.ausport.gov.au<http://www.ausport.gov.au>;
▸
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.
list Becker Christian
Brandon, i think i can remember someone saying that this could be depending on the eMail client your are using. 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. 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. When we did the test to another eMail address which was configured in Thunderbird eMail client, everything was fine. 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. Regards Christian Christian Becker IT-Services user-e4a19bfb94c0@xymon.invalid<mailto:user-e4a19bfb94c0@xymon.invalid> Mittelrhein-Verlag GmbH August-Horch-Straße 28 D-56070 Koblenz Verleger und Geschäftsführer: Walterpeter Twer Reg.-Gericht Koblenz HRB 121 Finanzamt Koblenz Str.Nr. 22 65 10 285 2 www.rhein-zeitung.de<http://www.rhein-zeitung.de/>;
▸
Von: Xymon [mailto:xymon-bounces at xymon.com] Im Auftrag von Brandon Dale Gesendet: Mittwoch, 17. Dezember 2014 00:43 An: xymon at xymon.com Betreff: [Xymon] html_mail.pl colour I am trying to setup HTML email alerts, I found this script on xymonton which appears to be exactly what I need https://wiki.xymonton.org/doku.php/alerts:html_mail I followed the instructions and added it to my alerts.cfg. 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. This is what I get emailed:
[cid:user-8ecb1ea4e886@xymon.invalid80]
▸
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:
<body background="cid:bkg-red.gif">
I checked on the xymon server and these files appear to exist where they need to:
usr/lib/xymon/server/www/gifs# ls
arrow.gif bkg-red.gif clear.gif favicon-purple.ico green-recent.gif red-ack.gif xymonbody.css
bkg-blue.gif bkg-yellow.gif clear-recent.gif favicon-red.ico purple-ack.gif red.gif yellow-ack.gif
bkg-clear.gif blue-ack.gif favicon-blue.ico favicon-unknown.ico purple.gif red-recent.gif yellow.gif
bkg-green.gif blue.gif favicon-clear.ico favicon-yellow.ico purple-recent.gif unknown.gif yellow-recent.gif
bkg-purple.gif blue-recent.gif favicon-green.ico green.gif README unknown-recent.gif zoom.gif
Am I doing something obivously wrong? And how do I go about troubleshooting this
Note:
- 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.
- Xymon 4.3.17 running on Debian 6
Brandon
list Brandon Dale
David Baldwin gave me a hand with some troubleshooting and it is an issue with outlook 2010 not displaying it correctly, it does work in thunderbird. So the script does indeed work and it's an issue with the email client. For now I will just have to live without that colour down the side which isn't a huge problem. The actual icons for red/yellow/green appear fine so I will just incorporate them into my custom tests so I still have something easily visible to indicate the alert status when viewed in outlook. Regards, Brandon
▸
From: Becker Christian [mailto:user-e4a19bfb94c0@xymon.invalid] Sent: Wednesday, 17 December 2014 6:59 PM To: Brandon Dale; xymon at xymon.com Subject: AW: html_mail.pl colour Brandon, i think i can remember someone saying that this could be depending on the eMail client your are using. 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. 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. When we did the test to another eMail address which was configured in Thunderbird eMail client, everything was fine. 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. Regards Christian Christian Becker IT-Services user-e4a19bfb94c0@xymon.invalid<mailto:user-e4a19bfb94c0@xymon.invalid> Mittelrhein-Verlag GmbH August-Horch-Straße 28 D-56070 Koblenz Verleger und Geschäftsführer: Walterpeter Twer Reg.-Gericht Koblenz HRB 121 Finanzamt Koblenz Str.Nr. 22 65 10 285 2 www.rhein-zeitung.de<http://www.rhein-zeitung.de/>; Von: Xymon [mailto:xymon-bounces at xymon.com] Im Auftrag von Brandon Dale Gesendet: Mittwoch, 17. Dezember 2014 00:43 An: xymon at xymon.com<mailto:xymon at xymon.com> Betreff: [Xymon] html_mail.pl colour I am trying to setup HTML email alerts, I found this script on xymonton which appears to be exactly what I need https://wiki.xymonton.org/doku.php/alerts:html_mail I followed the instructions and added it to my alerts.cfg. 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. This is what I get emailed:
[cid:user-b6e0dc61f198@xymon.invalid3D80]
▸
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:
<body background="cid:bkg-red.gif">
I checked on the xymon server and these files appear to exist where they need to:
usr/lib/xymon/server/www/gifs# ls
arrow.gif bkg-red.gif clear.gif favicon-purple.ico green-recent.gif red-ack.gif xymonbody.css
bkg-blue.gif bkg-yellow.gif clear-recent.gif favicon-red.ico purple-ack.gif red.gif yellow-ack.gif
bkg-clear.gif blue-ack.gif favicon-blue.ico favicon-unknown.ico purple.gif red-recent.gif yellow.gif
bkg-green.gif blue.gif favicon-clear.ico favicon-yellow.ico purple-recent.gif unknown.gif yellow-recent.gif
bkg-purple.gif blue-recent.gif favicon-green.ico green.gif README unknown-recent.gif zoom.gif
Am I doing something obivously wrong? And how do I go about troubleshooting this
Note:
- 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.
- Xymon 4.3.17 running on Debian 6
Brandon