html_mail.pl help
list David Baldwin
Joe,
I got your name from the html_mail.pl script. I recently updated to xymon 4.3.2 and tried to go live in production. On all alerts it seems to send out alerts to this one email address. it seems to send out to all that are intended to receive the emails but the one email has only two hosts that it monitors and gets alerts from. now it gets emails on the entire environment.
I can't follow what the problem is. The script gets called from the alerts.cfg file via the SCRIPT keyword. The hosts it applies to will be determined by the alerts.cfg file rules. The recipient for e-mails is specified by the RCPT environment variable when the script is called. Without the old and new config to compare, I can't help any further.
I see a lot of references to BB, has this script been updated?
The environment variable names have not changed that I know of, but I haven't used it with 4.3.x myself yet.
# Version Author Details # ------- ------ ------- # 1.0 Martin Ward Initial version. See code for details. # 1.1 David Baldwin Clean up, remove hard-coded paths. # 1.2 David Baldwin format message as alternative parts for plaintext and HTML views thanks for your help
I've CCed to the xymon list which is a better place to get general help. David. -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617 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 David Baldwin
On 26/05/11 2:26 AM, KING, KEVIN (ATTSI) wrote:
David, Where can I dl this? I goggled for it. But the hits I got were in the message archives and those are blocked to be at work.
http://xymonton.org/doku.php/alerts David.
-Kevin-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of David Baldwin Sent: Tuesday, May 24, 2011 9:51 PM To: Joe Rindfleisch Cc: xymon at xymon.com Subject: Re: [Xymon] html_mail.pl help
▸
Joe,I got your name from the html_mail.pl script. I recently updated to xymon 4.3.2 and tried to go live in production. On all alerts it seems to send out alerts to this one email address. it seems to send out to all that are intended to receive the emails but the one email has only two hosts that it monitors and gets alerts from. now it gets emails on the entire environment.I can't follow what the problem is. The script gets called from the alerts.cfg file via the SCRIPT keyword. The hosts it applies to will be determined by the alerts.cfg file rules. The recipient for e-mails is specified by the RCPT environment variable when the script is called. Without the old and new config to compare, I can't help any further.I see a lot of references to BB, has this script been updated?The environment variable names have not changed that I know of, but I haven't used it with 4.3.x myself yet.# Version Author Details # ------- ------ ------- # 1.0 Martin Ward Initial version. See code for details. # 1.1 David Baldwin Clean up, remove hard-coded paths. # 1.2 David Baldwin format message as alternative parts for plaintext and HTML views thanks for your helpI've CCed to the xymon list which is a better place to get general help. David. -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617 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.
-- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
list Kevin Attsi King
Thanks David, I have it running now. I am finding that when using the email ack function these messages are not getting parsed correctly. It is not seeing the delay or and comment text. Here is what is being displayed on the nongreen page: 7 events acknowledged in the past 240 minutes Thu May 26 14:19:10 2011 RcpkNj02Ss7R01A if_stat "KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid This is a multi-part message i Thu May 26 14:19:02 2011 MplsMnGtSs7R01B if_stat "KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid This is a multi-part message i Thu May 26 14:17:57 2011 ElssTxAeSS7R01A if_load "KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid This is a multi-part message i Thu May 26 14:17:41 2011 ElssTxAeSS7R01A if_load "KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid This is a multi-part message i Thu May 26 14:06:46 2011 BurlMaEhSS7R01B if_dsc "KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid This is a multi-part message i Thu May 26 14:01:13 2011 AllnTxDwSS7R01B if_load "KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid This is a multi-part message i Thu May 26 14:00:21 2011 CncnOhAmSs7R01B if_stat "KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid This is a multi-part message
▸
-----Original Message-----
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Wednesday, May 25, 2011 7:58 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
On 26/05/11 2:26 AM, KING, KEVIN (ATTSI) wrote:
David,
Where can I dl this? I goggled for it. But the hits I got were in the
message archives and those are blocked to be at work.
http://xymonton.org/doku.php/alerts
David.
-Kevin
-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On
Behalf Of David Baldwin
Sent: Tuesday, May 24, 2011 9:51 PM
To: Joe Rindfleisch
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Joe,
I got your name from the html_mail.pl script. I recently updated
to
xymon 4.3.2 and tried to go live in production.
On all alerts it seems to send out alerts to this one email
address.
it seems to send out to all that are intended to receive the emails
but the one email has only two hosts that it monitors and gets
alerts
from. now it gets emails on the entire environment.
I can't follow what the problem is.
The script gets called from the alerts.cfg file via the SCRIPT
keyword.
The hosts it applies to will be determined by the alerts.cfg file
rules.
The recipient for e-mails is specified by the RCPT environment
variable
when the script is called.
Without the old and new config to compare, I can't help any further.
I see a lot of references to BB, has this script been updated?
The environment variable names have not changed that I know of, but
I
haven't used it with 4.3.x myself yet.
# Version Author Details
# ------- ------ -------
# 1.0 Martin Ward Initial version. See code for
details.
# 1.1 David Baldwin Clean up, remove hard-coded paths.
# 1.2 David Baldwin format message as alternative parts
for plaintext and HTML views
thanks for your help
I've CCed to the xymon list which is a better place to get general
help.
David.
--
David Baldwin - IT Unit
Australian Sports Commission www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT
2617
--
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.
--
--
David Baldwin - IT Unit
Australian Sports Commission www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
list David Baldwin
Kevin,
▸
Thanks David, I have it running now. I am finding that when using the email ack function these messages are not getting parsed correctly. It is not seeing the delay or and comment text.
I have never used or tested the email ack function, so not sure what it is expecting. http://www.xymon.com/xymon/help/manpages/man8/xymon-mailack.8.html
ADDING INFORMATION TO THE REPLY MAIL
By default, an acknowledgment is valid for 1 hour. If you know in
advance that solving the problem is going to take longer, you can
change this by adding *delay=DURATION* to the subject of your mail
reply or on a line in the reply message. Duration is in minutes,
unless you add a trailing 'h' (for 'hours'), 'd' (for 'days') or 'w'
(for 'weeks').
You can also include a message that will show up on the status-page
together with the acknowledgment, e.g. to provide an explanation for
the issue or some other information to the users. You can either put
it at the end of the subject line as *msg=Some random text*, or you
can just enter it in the e-mail as the first non-blank line of text in
the mail (a "delay=N" line is ignored when looking for the message text).
May require some pre-processor to parse the ack message.
▸
Here is what is being displayed on the nongreen page: 7 events acknowledged in the past 240 minutes Thu May 26 14:19:10 2011 RcpkNj02Ss7R01A if_stat
http://scbgilifss7cwsvr.wnsnet.attws.com/xymon/gifs/red.gif
▸
"KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid
This is a multi-part message i
Thu May 26 14:19:02 2011
MplsMnGtSs7R01B
if_stat
http://scbgilifss7cwsvr.wnsnet.attws.com/xymon/gifs/red.gif
▸
"KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid
This is a multi-part message i
Thu May 26 14:17:57 2011
ElssTxAeSS7R01A
if_load
http://scbgilifss7cwsvr.wnsnet.attws.com/xymon/gifs/red.gif
▸
"KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid
This is a multi-part message i
Thu May 26 14:17:41 2011
ElssTxAeSS7R01A
if_load
http://scbgilifss7cwsvr.wnsnet.attws.com/xymon/gifs/red.gif
▸
"KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid
This is a multi-part message i
Thu May 26 14:06:46 2011
BurlMaEhSS7R01B
if_dsc
http://scbgilifss7cwsvr.wnsnet.attws.com/xymon/gifs/red.gif
▸
"KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid
This is a multi-part message i
Thu May 26 14:01:13 2011
AllnTxDwSS7R01B
if_load
http://scbgilifss7cwsvr.wnsnet.attws.com/xymon/gifs/red.gif
▸
"KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid
This is a multi-part message i
Thu May 26 14:00:21 2011
CncnOhAmSs7R01B
if_stat
http://scbgilifss7cwsvr.wnsnet.attws.com/xymon/gifs/red.gif "KING, KEVIN (ATTSI)" user-ca972c0c43a8@xymon.invalid This is a multi-part message
Quite likely xymon-mailack doesn't handle MIME messages ("This is a
multi-part message" would indicate this), since there would be too many
options to have to cater for.
It is possibly a side effect in your MUA (Outlook?) of receiving an html
formatted alert e-mail that by default an HTML reply will be generated -
can you configure your mail client to do a plain text e-mail reply?
Thunderbird has this feature in the address book selectable per user.
Did it work before you tried html_mail.pl ?
I don't think it is a limitation of html_mail.pl as such, unless some
extra headers could assist in hinting to a MUA to reply in plaintext only.
David.▸
-----Original Message-----From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]Sent: Wednesday, May 25, 2011 7:58 PMTo: KING, KEVIN (ATTSI)Cc: xymon at xymon.comSubject: Re: [Xymon] html_mail.pl helpOn 26/05/11 2:26 AM, KING, KEVIN (ATTSI) wrote:David,Where can I dl this? I goggled for it. But the hits I got were in themessage archives and those are blocked to be at work.http://xymonton.org/doku.php/alertsDavid.-Kevin-----Original Message-----From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] OnBehalf Of David BaldwinSent: Tuesday, May 24, 2011 9:51 PMTo: Joe RindfleischCc: xymon at xymon.comSubject: Re: [Xymon] html_mail.pl helpJoe,I got your name from the html_mail.pl script. I recently updatedtoxymon 4.3.2 and tried to go live in production.On all alerts it seems to send out alerts to this one emailaddress.it seems to send out to all that are intended to receive the emailsbut the one email has only two hosts that it monitors and getsalertsfrom. now it gets emails on the entire environment.I can't follow what the problem is.The script gets called from the alerts.cfg file via the SCRIPTkeyword.The hosts it applies to will be determined by the alerts.cfg filerules.The recipient for e-mails is specified by the RCPT environmentvariablewhen the script is called.Without the old and new config to compare, I can't help any further.I see a lot of references to BB, has this script been updated?The environment variable names have not changed that I know of, butIhaven't used it with 4.3.x myself yet.# Version Author Details# ------- ------ -------# 1.0 Martin Ward Initial version. See code fordetails.# 1.1 David Baldwin Clean up, remove hard-coded paths.# 1.2 David Baldwin format message as alternative partsfor plaintext and HTML viewsthanks for your helpI've CCed to the xymon list which is a better place to get generalhelp.David.--David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.auTel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT2617--Keep up to date with what's happening in Australian sport visithttp://www.ausport.gov.auThis message is intended for the addressee named and may containconfidential and privileged information. If you are not the intendedrecipient please note that any form of distribution, copying or useofthis communication or the information in it is strictly prohibitedandmay be unlawful. If you receive this message in error, please deleteitand notify the sender.----David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.auTel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
-- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
list Kevin Attsi King
David, I am clear on the Xymon-mailack. The text issue is resolved by the changing to text for the response. I am testing the delay feature. I sent a sample of the mail to you off list. IS there a way to stop the repeating background color band? It should only have the one on the left side. Is that something outlook is doing or the output from the html_mail.pl? Oh and anything on the mail message length? The full message is not sent. No link to the test page in the message. -Kevin
▸
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Thursday, May 26, 2011 7:01 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Kevin,
Thanks David,
I have it running now. I am finding that when using the email ack function these messages are not getting parsed correctly. It is not seeing the delay or and comment text.
I have never used or tested the email ack function, so not sure what it is expecting.
Quite likely xymon-mailack doesn't handle MIME messages ("This is a multi-part message" would indicate this), since there would be too many options to have to cater for.
It is possibly a side effect in your MUA (Outlook?) of receiving an html formatted alert e-mail that by default an HTML reply will be generated - can you configure your mail client to do a plain text e-mail reply? Thunderbird has this feature in the address book selectable per user.
Did it work before you tried html_mail.pl ?
I don't think it is a limitation of html_mail.pl as such, unless some extra headers could assist in hinting to a MUA to reply in plaintext only.
David.
-----Original Message-----
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Wednesday, May 25, 2011 7:58 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
On 26/05/11 2:26 AM, KING, KEVIN (ATTSI) wrote:
David,
Where can I dl this? I goggled for it. But the hits I got were in the
message archives and those are blocked to be at work.
http://xymonton.org/doku.php/alerts
David.
-Kevin
-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On
Behalf Of David Baldwin
Sent: Tuesday, May 24, 2011 9:51 PM
To: Joe Rindfleisch
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Joe,
I got your name from the html_mail.pl script. I recently updated
to
xymon 4.3.2 and tried to go live in production.
On all alerts it seems to send out alerts to this one email
address.
it seems to send out to all that are intended to receive the emails
but the one email has only two hosts that it monitors and gets
alerts
from. now it gets emails on the entire environment.
I can't follow what the problem is.
The script gets called from the alerts.cfg file via the SCRIPT
keyword.
The hosts it applies to will be determined by the alerts.cfg file
rules.
The recipient for e-mails is specified by the RCPT environment
variable
when the script is called.
Without the old and new config to compare, I can't help any further.
I see a lot of references to BB, has this script been updated?
The environment variable names have not changed that I know of, but
I
haven't used it with 4.3.x myself yet.
# Version Author Details
# ------- ------ -------
# 1.0 Martin Ward Initial version. See code for
details.
# 1.1 David Baldwin Clean up, remove hard-coded paths.
# 1.2 David Baldwin format message as alternative parts
for plaintext and HTML views
thanks for your help
I've CCed to the xymon list which is a better place to get general
help.
David.
--
David Baldwin - IT Unit
Australian Sports Commission www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT
2617
--
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.
--
--
David Baldwin - IT Unit
Australian Sports Commission www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
-- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
list David Baldwin
Kevin,
▸
I am clear on the Xymon-mailack. The text issue is resolved by the changing to text for the response. I am testing the delay feature. I sent a sample of the mail to you off list.
All good!
▸
IS there a way to stop the repeating background color band? It should only have the one on the left side. Is that something outlook is doing or the output from the html_mail.pl?
Sorry, I didn't realise the repeating background was still a problem. I misunderstood when you said you'd got it working... The repeating background image is odd. I haven't seen that before. What version of Outlook do you use? I just checked the HTML in the message, and the background images I am using (which I'm pretty sure are the default set) actually have an image width of 1800 pixels, so any repeat (which is actually default behaviour) should be way off to the right out of sight. The script should be fixed to use CSS body properties rather than various properties of the BODY tag, in which case the image could possibly be made less wide, although then the background colour would have to be black rather than the status colour. Unlikely that would cause much problem in this day and age though?
▸
Oh and anything on the mail message length? The full message is not sent. No link to the test page in the message.
I've just gone back and checked what html_mail.pl code I am using in prod vs Xymonton version - I'd added a link at the top in my current prod version, but will use CSS to do backgrounds and make background explicitly not repeat in 'x' direction... I will create a new html_mail.pl v 1.3 tomorrow when I get time to clean it up. It would be easier if xymonton had some kind of version control then keeping it up to date would be a bit easier. David.
-Kevin *From:*David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
▸
*Sent:* Thursday, May 26, 2011 7:01 PM *To:* KING, KEVIN (ATTSI) *Cc:* xymon at xymon.com *Subject:* Re: [Xymon] html_mail.pl help Kevin, Thanks David, I have it running now. I am finding that when using the email ack function these messages are not getting parsed correctly. It is not seeing the delay or and comment text. I have never used or tested the email ack function, so not sure what it is expecting. Quite likely xymon-mailack doesn't handle MIME messages ("This is a multi-part message" would indicate this), since there would be too many options to have to cater for. It is possibly a side effect in your MUA (Outlook?) of receiving an html formatted alert e-mail that by default an HTML reply will be generated - can you configure your mail client to do a plain text e-mail reply? Thunderbird has this feature in the address book selectable per user. Did it work before you tried html_mail.pl ? I don't think it is a limitation of html_mail.pl as such, unless some extra headers could assist in hinting to a MUA to reply in plaintext only. David.-----Original Message-----From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]Sent: Wednesday, May 25, 2011 7:58 PMTo: KING, KEVIN (ATTSI)Cc: xymon at xymon.com <mailto:xymon at xymon.com>Subject: Re: [Xymon] html_mail.pl helpOn 26/05/11 2:26 AM, KING, KEVIN (ATTSI) wrote:David,Where can I dl this? I goggled for it. But the hits I got were in themessage archives and those are blocked to be at work.http://xymonton.org/doku.php/alertsDavid.-Kevin-----Original Message-----From: xymon-bounces at xymon.com <mailto:xymon-bounces at xymon.com>[mailto:xymon-bounces at xymon.com] OnBehalf Of David BaldwinSent: Tuesday, May 24, 2011 9:51 PMTo: Joe Rindfleisch
Cc: xymon at xymon.com <mailto:xymon at xymon.com>
▸
Subject: Re: [Xymon] html_mail.pl helpJoe,I got your name from the html_mail.pl script. I recently updatedtoxymon 4.3.2 and tried to go live in production.On all alerts it seems to send out alerts to this one emailaddress.it seems to send out to all that are intended to receive the emailsbut the one email has only two hosts that it monitors and getsalertsfrom. now it gets emails on the entire environment.I can't follow what the problem is.The script gets called from the alerts.cfg file via the SCRIPTkeyword.The hosts it applies to will be determined by the alerts.cfg filerules.The recipient for e-mails is specified by the RCPT environmentvariablewhen the script is called.Without the old and new config to compare, I can't help any further.I see a lot of references to BB, has this script been updated?The environment variable names have not changed that I know of, butIhaven't used it with 4.3.x myself yet.# Version Author Details# ------- ------ -------# 1.0 Martin Ward Initial version. See code fordetails.# 1.1 David Baldwin Clean up, remove hard-coded paths.# 1.2 David Baldwin format message as alternative partsfor plaintext and HTML viewsthanks for your helpI've CCed to the xymon list which is a better place to get generalhelp.David.--David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.au
<http://www.ausport.gov.au>;
▸
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616user-cbbf693f2c89@xymon.invalid
<mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT
▸
2617--Keep up to date with what's happening in Australian sport visithttp://www.ausport.gov.auThis message is intended for the addressee named and may containconfidential and privileged information. If you are not the intendedrecipient please note that any form of distribution, copying or useofthis communication or the information in it is strictly prohibitedandmay be unlawful. If you receive this message in error, please deleteitand notify the sender.----David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.au
<http://www.ausport.gov.au>;
▸
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616user-cbbf693f2c89@xymon.invalid
<mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT 2617 -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au <http://www.ausport.gov.au>; Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid <mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT 2617
▸
-- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
list Kevin Attsi King
I am using outlook 2007 sp2. I will check out the new version a bit later today.
▸
-Kevin
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Monday, May 30, 2011 3:23 AM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Kevin,
I am clear on the Xymon-mailack. The text issue is resolved by the changing to text for the response. I am testing the delay feature. I sent a sample of the mail to you off list.
All good!
IS there a way to stop the repeating background color band? It should only have the one on the left side. Is that something outlook is doing or the output from the html_mail.pl?
Sorry, I didn't realise the repeating background was still a problem. I misunderstood when you said you'd got it working...
The repeating background image is odd. I haven't seen that before. What version of Outlook do you use?
I just checked the HTML in the message, and the background images I am using (which I'm pretty sure are the default set) actually have an image width of 1800 pixels, so any repeat (which is actually default behaviour) should be way off to the right out of sight.
The script should be fixed to use CSS body properties rather than various properties of the BODY tag, in which case the image could possibly be made less wide, although then the background colour would have to be black rather than the status colour. Unlikely that would cause much problem in this day and age though?
Oh and anything on the mail message length? The full message is not sent. No link to the test page in the message.
I've just gone back and checked what html_mail.pl code I am using in prod vs Xymonton version - I'd added a link at the top in my current prod version, but will use CSS to do backgrounds and make background explicitly not repeat in 'x' direction...
I will create a new html_mail.pl v 1.3 tomorrow when I get time to clean it up. It would be easier if xymonton had some kind of version control then keeping it up to date would be a bit easier.
David.
-Kevin
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Thursday, May 26, 2011 7:01 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Kevin,
Thanks David,
I have it running now. I am finding that when using the email ack function these messages are not getting parsed correctly. It is not seeing the delay or and comment text.
I have never used or tested the email ack function, so not sure what it is expecting.
Quite likely xymon-mailack doesn't handle MIME messages ("This is a multi-part message" would indicate this), since there would be too many options to have to cater for.
It is possibly a side effect in your MUA (Outlook?) of receiving an html formatted alert e-mail that by default an HTML reply will be generated - can you configure your mail client to do a plain text e-mail reply? Thunderbird has this feature in the address book selectable per user.
Did it work before you tried html_mail.pl ?
I don't think it is a limitation of html_mail.pl as such, unless some extra headers could assist in hinting to a MUA to reply in plaintext only.
David.
-----Original Message-----
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Wednesday, May 25, 2011 7:58 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
On 26/05/11 2:26 AM, KING, KEVIN (ATTSI) wrote:
David,
Where can I dl this? I goggled for it. But the hits I got were in the
message archives and those are blocked to be at work.
http://xymonton.org/doku.php/alerts
David.
-Kevin
-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On
Behalf Of David Baldwin
Sent: Tuesday, May 24, 2011 9:51 PM
To: Joe Rindfleisch
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Joe,
I got your name from the html_mail.pl script. I recently updated
to
xymon 4.3.2 and tried to go live in production.
On all alerts it seems to send out alerts to this one email
address.
it seems to send out to all that are intended to receive the emails
but the one email has only two hosts that it monitors and gets
alerts
from. now it gets emails on the entire environment.
I can't follow what the problem is.
The script gets called from the alerts.cfg file via the SCRIPT
keyword.
The hosts it applies to will be determined by the alerts.cfg file
rules.
The recipient for e-mails is specified by the RCPT environment
variable
when the script is called.
Without the old and new config to compare, I can't help any further.
I see a lot of references to BB, has this script been updated?
The environment variable names have not changed that I know of, but
I
haven't used it with 4.3.x myself yet.
# Version Author Details
# ------- ------ -------
# 1.0 Martin Ward Initial version. See code for
details.
# 1.1 David Baldwin Clean up, remove hard-coded paths.
# 1.2 David Baldwin format message as alternative parts
for plaintext and HTML views
thanks for your help
I've CCed to the xymon list which is a better place to get general
help.
David.
--
David Baldwin - IT Unit
Australian Sports Commission www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT
2617
--
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.
--
--
David Baldwin - IT Unit
Australian Sports Commission www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
-- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617 -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
list David Baldwin
On 6/06/11 9:24 PM, KING, KEVIN (ATTSI) wrote:
David, I do not see the new version on Xymonton site.
My apologies. I've uploaded the version I'm currently using in prod. It includes a link to the test page at the top of the message. Didn't get to finish testing a version using CSS for background info. Let me know if you still have a problem with background images using this version.
▸
David.-Kevin *From:*David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid] *Sent:* Monday, May 30, 2011 3:23 AM *To:* KING, KEVIN (ATTSI) *Cc:* xymon at xymon.com *Subject:* Re: [Xymon] html_mail.pl help Kevin, I am clear on the Xymon-mailack. The text issue is resolved by the changing to text for the response. I am testing the delay feature. I sent a sample of the mail to you off list. All good! IS there a way to stop the repeating background color band? It should only have the one on the left side. Is that something outlook is doing or the output from the html_mail.pl? Sorry, I didn't realise the repeating background was still a problem. I misunderstood when you said you'd got it working... The repeating background image is odd. I haven't seen that before. What version of Outlook do you use? I just checked the HTML in the message, and the background images I am using (which I'm pretty sure are the default set) actually have an image width of 1800 pixels, so any repeat (which is actually default behaviour) should be way off to the right out of sight. The script should be fixed to use CSS body properties rather than various properties of the BODY tag, in which case the image could possibly be made less wide, although then the background colour would have to be black rather than the status colour. Unlikely that would cause much problem in this day and age though? Oh and anything on the mail message length? The full message is not sent. No link to the test page in the message. I've just gone back and checked what html_mail.pl code I am using in prod vs Xymonton version - I'd added a link at the top in my current prod version, but will use CSS to do backgrounds and make background explicitly not repeat in 'x' direction... I will create a new html_mail.pl v 1.3 tomorrow when I get time to clean it up. It would be easier if xymonton had some kind of version control then keeping it up to date would be a bit easier. David. -Kevin *From:*David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid] *Sent:* Thursday, May 26, 2011 7:01 PM *To:* KING, KEVIN (ATTSI) *Cc:* xymon at xymon.com <mailto:xymon at xymon.com> *Subject:* Re: [Xymon] html_mail.pl help Kevin, Thanks David, I have it running now. I am finding that when using the email ack function these messages are not getting parsed correctly. It is not seeing the delay or and comment text. I have never used or tested the email ack function, so not sure what it is expecting. Quite likely xymon-mailack doesn't handle MIME messages ("This is a multi-part message" would indicate this), since there would be too many options to have to cater for. It is possibly a side effect in your MUA (Outlook?) of receiving an html formatted alert e-mail that by default an HTML reply will be generated - can you configure your mail client to do a plain text e-mail reply? Thunderbird has this feature in the address book selectable per user. Did it work before you tried html_mail.pl ? I don't think it is a limitation of html_mail.pl as such, unless some extra headers could assist in hinting to a MUA to reply in plaintext only. David.-----Original Message-----From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]Sent: Wednesday, May 25, 2011 7:58 PMTo: KING, KEVIN (ATTSI)Cc: xymon at xymon.com <mailto:xymon at xymon.com>Subject: Re: [Xymon] html_mail.pl helpOn 26/05/11 2:26 AM, KING, KEVIN (ATTSI) wrote:David,Where can I dl this? I goggled for it. But the hits I got were in themessage archives and those are blocked to be at work.http://xymonton.org/doku.php/alertsDavid.-Kevin-----Original Message-----From: xymon-bounces at xymon.com <mailto:xymon-bounces at xymon.com>[mailto:xymon-bounces at xymon.com] OnBehalf Of David BaldwinSent: Tuesday, May 24, 2011 9:51 PMTo: Joe RindfleischCc: xymon at xymon.com <mailto:xymon at xymon.com>Subject: Re: [Xymon] html_mail.pl helpJoe,I got your name from the html_mail.pl script. I recently updatedtoxymon 4.3.2 and tried to go live in production.On all alerts it seems to send out alerts to this one emailaddress.it seems to send out to all that are intended to receive the emailsbut the one email has only two hosts that it monitors and getsalertsfrom. now it gets emails on the entire environment.I can't follow what the problem is.The script gets called from the alerts.cfg file via the SCRIPTkeyword.The hosts it applies to will be determined by the alerts.cfg filerules.The recipient for e-mails is specified by the RCPT environmentvariablewhen the script is called.Without the old and new config to compare, I can't help any further.I see a lot of references to BB, has this script been updated?The environment variable names have not changed that I know of, butIhaven't used it with 4.3.x myself yet.# Version Author Details# ------- ------ -------# 1.0 Martin Ward Initial version. See code fordetails.# 1.1 David Baldwin Clean up, remove hard-coded paths.# 1.2 David Baldwin format message as alternative partsfor plaintext and HTML viewsthanks for your helpI've CCed to the xymon list which is a better place to get generalhelp.David.--David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.au<http://www.ausport.gov.au>;Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616user-cbbf693f2c89@xymon.invalid<mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT2617--Keep up to date with what's happening in Australian sport visithttp://www.ausport.gov.auThis message is intended for the addressee named and may containconfidential and privileged information. If you are not the intendedrecipient please note that any form of distribution, copying or useofthis communication or the information in it is strictly prohibitedandmay be unlawful. If you receive this message in error, please deleteitand notify the sender.----David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.au<http://www.ausport.gov.au>;Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616user-cbbf693f2c89@xymon.invalid<mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT 2617 -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au <http://www.ausport.gov.au>; Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid <mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT 2617 -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au <http://www.ausport.gov.au>; Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid <mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT 2617
-- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
list Kevin Attsi King
David, Ver 1.3 works very well. The link at the top is great. Two buglets I found, in the message subject you still have Hobbit, should be Xymon and there needs to be a space after Xymon and before the [ . Without the space the mail-ack process will not recognize the response. So other than my color banding in outlook things work well. Thanks for your time and efforts.
▸
-Kevin
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Monday, June 06, 2011 9:47 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
On 6/06/11 9:24 PM, KING, KEVIN (ATTSI) wrote:
David,
I do not see the new version on Xymonton site.
My apologies. I've uploaded the version I'm currently using in prod. It includes a link to the test page at the top of the message.
Didn't get to finish testing a version using CSS for background info. Let me know if you still have a problem with background images using this version.
David.
-Kevin
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Monday, May 30, 2011 3:23 AM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Kevin,
I am clear on the Xymon-mailack. The text issue is resolved by the changing to text for the response. I am testing the delay feature. I sent a sample of the mail to you off list.
All good!
IS there a way to stop the repeating background color band? It should only have the one on the left side. Is that something outlook is doing or the output from the html_mail.pl?
Sorry, I didn't realise the repeating background was still a problem. I misunderstood when you said you'd got it working...
The repeating background image is odd. I haven't seen that before. What version of Outlook do you use?
I just checked the HTML in the message, and the background images I am using (which I'm pretty sure are the default set) actually have an image width of 1800 pixels, so any repeat (which is actually default behaviour) should be way off to the right out of sight.
The script should be fixed to use CSS body properties rather than various properties of the BODY tag, in which case the image could possibly be made less wide, although then the background colour would have to be black rather than the status colour. Unlikely that would cause much problem in this day and age though?
Oh and anything on the mail message length? The full message is not sent. No link to the test page in the message.
I've just gone back and checked what html_mail.pl code I am using in prod vs Xymonton version - I'd added a link at the top in my current prod version, but will use CSS to do backgrounds and make background explicitly not repeat in 'x' direction...
I will create a new html_mail.pl v 1.3 tomorrow when I get time to clean it up. It would be easier if xymonton had some kind of version control then keeping it up to date would be a bit easier.
David.
-Kevin
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Thursday, May 26, 2011 7:01 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Kevin,
Thanks David,
I have it running now. I am finding that when using the email ack function these messages are not getting parsed correctly. It is not seeing the delay or and comment text.
I have never used or tested the email ack function, so not sure what it is expecting.
Quite likely xymon-mailack doesn't handle MIME messages ("This is a multi-part message" would indicate this), since there would be too many options to have to cater for.
It is possibly a side effect in your MUA (Outlook?) of receiving an html formatted alert e-mail that by default an HTML reply will be generated - can you configure your mail client to do a plain text e-mail reply? Thunderbird has this feature in the address book selectable per user.
Did it work before you tried html_mail.pl ?
I don't think it is a limitation of html_mail.pl as such, unless some extra headers could assist in hinting to a MUA to reply in plaintext only.
David.
-----Original Message-----
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Wednesday, May 25, 2011 7:58 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
On 26/05/11 2:26 AM, KING, KEVIN (ATTSI) wrote:
David,
Where can I dl this? I goggled for it. But the hits I got were in the
message archives and those are blocked to be at work.
http://xymonton.org/doku.php/alerts
David.
-Kevin
-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On
Behalf Of David Baldwin
Sent: Tuesday, May 24, 2011 9:51 PM
To: Joe Rindfleisch
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Joe,
I got your name from the html_mail.pl script. I recently updated
to
xymon 4.3.2 and tried to go live in production.
On all alerts it seems to send out alerts to this one email
address.
it seems to send out to all that are intended to receive the emails
but the one email has only two hosts that it monitors and gets
alerts
from. now it gets emails on the entire environment.
I can't follow what the problem is.
The script gets called from the alerts.cfg file via the SCRIPT
keyword.
The hosts it applies to will be determined by the alerts.cfg file
rules.
The recipient for e-mails is specified by the RCPT environment
variable
when the script is called.
Without the old and new config to compare, I can't help any further.
I see a lot of references to BB, has this script been updated?
The environment variable names have not changed that I know of, but
I
haven't used it with 4.3.x myself yet.
# Version Author Details
# ------- ------ -------
# 1.0 Martin Ward Initial version. See code for
details.
# 1.1 David Baldwin Clean up, remove hard-coded paths.
# 1.2 David Baldwin format message as alternative parts
for plaintext and HTML views
thanks for your help
I've CCed to the xymon list which is a better place to get general
help.
David.
--
David Baldwin - IT Unit
Australian Sports Commission www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT
2617
--
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.
--
--
David Baldwin - IT Unit
Australian Sports Commission www.ausport.gov.au
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
-- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617 -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617 -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
list Nick Camaldi
where do i find the 1.3 version link please
▸
Date: Tue, 7 Jun 2011 16:03:12 -0400
From: user-ca972c0c43a8@xymon.invalid
To: user-cbbf693f2c89@xymon.invalid
CC: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
David,
Ver 1.3 works very well. The link at the top is great.
Two buglets I found, in the message subject you still have Hobbit, should be Xymon and there needs to be a space after Xymon and before the [ . Without the space the mail-ack process will not recognize the response.
So other than my color banding in outlook things work well.
Thanks for your time and efforts.
-Kevin
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Monday, June 06, 2011 9:47 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
On 6/06/11 9:24 PM, KING, KEVIN (ATTSI) wrote:
David,
I do not see the new version on Xymonton site.
My apologies. I've uploaded the version I'm currently using in prod. It includes a link to the test page at the top of the message.
Didn't get to finish testing a version using CSS for background info. Let me know if you still have a problem with background images using this version.
David.
-Kevin
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Monday, May 30, 2011 3:23 AM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Kevin,
I am clear on the Xymon-mailack. The text issue is resolved by the changing to text for the response. I am testing the delay feature. I sent a sample of the mail to you off list.
All good!
IS there a way to stop the repeating background color band? It should only have the one on the left side. Is that something outlook is doing or the output from the html_mail.pl?
Sorry, I didn't realise the repeating background was still a problem. I misunderstood when you said you'd got it working...
The repeating background image is odd. I haven't seen that before. What version of Outlook do you use?
I just checked the HTML in the message, and the background images I am using (which I'm pretty sure are the default set) actually have an image width of 1800 pixels, so any repeat (which is actually default behaviour) should be way off to the right out of sight.
The script should be fixed to use CSS body properties rather than various properties of the BODY tag, in which case the image could possibly be made less wide, although then the background colour would have to be black rather than the status colour. Unlikely that would cause much problem in this day and age though?
Oh and anything on the mail message length? The full message is not sent. No link to the test page in the message.
I've just gone back and checked what html_mail.pl code I am using in prod vs Xymonton version - I'd added a link at the top in my current prod version, but will use CSS to do backgrounds and make background explicitly not repeat in 'x' direction...
I will create a new html_mail.pl v 1.3 tomorrow when I get time to clean it up. It would be easier if xymonton had some kind of version control then keeping it up to date would be a bit easier.
David.
-Kevin
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Thursday, May 26, 2011 7:01 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Kevin,
Thanks David,
I have it running now. I am finding that when using the email ack function these messages are not getting parsed correctly. It is not seeing the delay or and comment text.
I have never used or tested the email ack function, so not sure what it is expecting.
Quite likely xymon-mailack doesn't handle MIME messages ("This is a multi-part message" would indicate this), since there would be too many options to have to cater for.
It is possibly a side effect in your MUA (Outlook?) of receiving an html formatted alert e-mail that by default an HTML reply will be generated - can you configure your mail client to do a plain text e-mail reply? Thunderbird has this feature in the address book selectable per user.
Did it work before you tried html_mail.pl ?
I don't think it is a limitation of html_mail.pl as such, unless some extra headers could assist in hinting to a MUA to reply in plaintext only.
David. -----Original Message----- From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid] Sent: Wednesday, May 25, 2011 7:58 PM To: KING, KEVIN (ATTSI) Cc: xymon at xymon.com Subject: Re: [Xymon] html_mail.pl help On 26/05/11 2:26 AM, KING, KEVIN (ATTSI) wrote:David, Where can I dl this? I goggled for it. But the hits I got were in the message archives and those are blocked to be at work.http://xymonton.org/doku.php/alerts David.-Kevin-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of David Baldwin Sent: Tuesday, May 24, 2011 9:51 PM To: Joe Rindfleisch Cc: xymon at xymon.com Subject: Re: [Xymon] html_mail.pl help Joe,I got your name from the html_mail.pl script. I recently updated to xymon 4.3.2 and tried to go live in production. On all alerts it seems to send out alerts to this one email address. it seems to send out to all that are intended to receive the emails but the one email has only two hosts that it monitors and gets alerts from. now it gets emails on the entire environment.I can't follow what the problem is. The script gets called from the alerts.cfg file via the SCRIPT keyword. The hosts it applies to will be determined by the alerts.cfg file rules. The recipient for e-mails is specified by the RCPT environment variable when the script is called. Without the old and new config to compare, I can't help any further.I see a lot of references to BB, has this script been updated?The environment variable names have not changed that I know of, butIhaven't used it with 4.3.x myself yet.# Version Author Details # ------- ------ ------- # 1.0 Martin Ward Initial version. See code for details. # 1.1 David Baldwin Clean up, remove hard-coded paths. # 1.2 David Baldwin format message as alternative parts for plaintext and HTML views thanks for your helpI've CCed to the xymon list which is a better place to get general help. David. -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT2617--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.---- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
-- David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.auTel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT user-0e3dcac72dc1@xymon.invalid Leverrier Street Bruce ACT 2617
-- David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.auTel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT user-0e3dcac72dc1@xymon.invalid Leverrier Street Bruce ACT 2617
-- David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.auTel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT user-0e3dcac72dc1@xymon.invalid Leverrier Street Bruce ACT 2617
list Kevin Attsi King
It was a ways down in the untrimmed message.
▸
Where can I dl this? I goggled for it. But the hits I got were in the
message archives and those are blocked to be at work.
http://xymonton.org/doku.php/alerts
David.
-Kevin
From: Nick Camaldi [mailto:user-93c600de5418@xymon.invalid] Sent: Wednesday, June 08, 2011 4:09 PM To: KING, KEVIN (ATTSI); user-cbbf693f2c89@xymon.invalid Cc: xymon at xymon.com Subject: RE: [Xymon] html_mail.pl help where do i find the 1.3 version link please
mailing list Xymon at xymon.com
list Nick Camaldi
Thank you but i'm still getting stripes. is there a way to only put just the one bar?
▸
From: user-93c600de5418@xymon.invalid
To: user-ca972c0c43a8@xymon.invalid; user-cbbf693f2c89@xymon.invalid
Date: Wed, 8 Jun 2011 16:09:17 -0400
CC: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
where do i find the 1.3 version link please
Date: Tue, 7 Jun 2011 16:03:12 -0400
From: user-ca972c0c43a8@xymon.invalid
To: user-cbbf693f2c89@xymon.invalid
CC: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
David,
Ver 1.3 works very well. The link at the top is great.
Two buglets I found, in the message subject you still have Hobbit, should be Xymon and there needs to be a space after Xymon and before the [ . Without the space the mail-ack process will not recognize the response.
So other than my color banding in outlook things work well.
Thanks for your time and efforts.
-Kevin
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Monday, June 06, 2011 9:47 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
On 6/06/11 9:24 PM, KING, KEVIN (ATTSI) wrote:
David,
I do not see the new version on Xymonton site.
My apologies. I've uploaded the version I'm currently using in prod. It includes a link to the test page at the top of the message.
Didn't get to finish testing a version using CSS for background info. Let me know if you still have a problem with background images using this version.
David.
-Kevin
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Monday, May 30, 2011 3:23 AM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Kevin,
I am clear on the Xymon-mailack. The text issue is resolved by the changing to text for the response. I am testing the delay feature. I sent a sample of the mail to you off list.
All good!
IS there a way to stop the repeating background color band? It should only have the one on the left side. Is that something outlook is doing or the output from the html_mail.pl?
Sorry, I didn't realise the repeating background was still a problem. I misunderstood when you said you'd got it working...
The repeating background image is odd. I haven't seen that before. What version of Outlook do you use?
I just checked the HTML in the message, and the background images I am using (which I'm pretty sure are the default set) actually have an image width of 1800 pixels, so any repeat (which is actually default behaviour) should be way off to the right out of sight.
The script should be fixed to use CSS body properties rather than various properties of the BODY tag, in which case the image could possibly be made less wide, although then the background colour would have to be black rather than the status colour. Unlikely that would cause much problem in this day and age though?
Oh and anything on the mail message length? The full message is not sent. No link to the test page in the message.
I've just gone back and checked what html_mail.pl code I am using in prod vs Xymonton version - I'd added a link at the top in my current prod version, but will use CSS to do backgrounds and make background explicitly not repeat in 'x' direction...
I will create a new html_mail.pl v 1.3 tomorrow when I get time to clean it up. It would be easier if xymonton had some kind of version control then keeping it up to date would be a bit easier.
David.
-Kevin
From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]
Sent: Thursday, May 26, 2011 7:01 PM
To: KING, KEVIN (ATTSI)
Cc: xymon at xymon.com
Subject: Re: [Xymon] html_mail.pl help
Kevin,
Thanks David,
I have it running now. I am finding that when using the email ack function these messages are not getting parsed correctly. It is not seeing the delay or and comment text.
I have never used or tested the email ack function, so not sure what it is expecting.
Quite likely xymon-mailack doesn't handle MIME messages ("This is a multi-part message" would indicate this), since there would be too many options to have to cater for.
It is possibly a side effect in your MUA (Outlook?) of receiving an html formatted alert e-mail that by default an HTML reply will be generated - can you configure your mail client to do a plain text e-mail reply? Thunderbird has this feature in the address book selectable per user.
Did it work before you tried html_mail.pl ?
I don't think it is a limitation of html_mail.pl as such, unless some extra headers could assist in hinting to a MUA to reply in plaintext only.
David. -----Original Message----- From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid] Sent: Wednesday, May 25, 2011 7:58 PM To: KING, KEVIN (ATTSI) Cc: xymon at xymon.com Subject: Re: [Xymon] html_mail.pl help On 26/05/11 2:26 AM, KING, KEVIN (ATTSI) wrote:David, Where can I dl this? I goggled for it. But the hits I got were in the message archives and those are blocked to be at work.http://xymonton.org/doku.php/alerts David.-Kevin-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of David Baldwin Sent: Tuesday, May 24, 2011 9:51 PM To: Joe Rindfleisch Cc: xymon at xymon.com Subject: Re: [Xymon] html_mail.pl help Joe,I got your name from the html_mail.pl script. I recently updated to xymon 4.3.2 and tried to go live in production. On all alerts it seems to send out alerts to this one email address. it seems to send out to all that are intended to receive the emails but the one email has only two hosts that it monitors and gets alerts from. now it gets emails on the entire environment.I can't follow what the problem is. The script gets called from the alerts.cfg file via the SCRIPT keyword. The hosts it applies to will be determined by the alerts.cfg file rules. The recipient for e-mails is specified by the RCPT environment variable when the script is called. Without the old and new config to compare, I can't help any further.I see a lot of references to BB, has this script been updated?The environment variable names have not changed that I know of, butIhaven't used it with 4.3.x myself yet.# Version Author Details # ------- ------ ------- # 1.0 Martin Ward Initial version. See code for details. # 1.1 David Baldwin Clean up, remove hard-coded paths. # 1.2 David Baldwin format message as alternative parts for plaintext and HTML views thanks for your helpI've CCed to the xymon list which is a better place to get general help. David. -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT2617--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.---- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617
-- David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.auTel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT user-0e3dcac72dc1@xymon.invalid Leverrier Street Bruce ACT 2617 -- David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.auTel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT user-0e3dcac72dc1@xymon.invalid Leverrier Street Bruce ACT 2617 -- David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.auTel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT user-0e3dcac72dc1@xymon.invalid Leverrier Street Bruce ACT 2617
list David Baldwin
▸
On 9/06/11 7:45 AM, Nick Camaldi wrote:
Thank you but i'm still getting stripes. is there a way to only put just the one bar?
Strange. I manually base64 decoded the background image Kevin forwarded, and has a width of only 125 pixels. The background image I am using (standard image files I believe from 4.2.3 install) have a width of 1800 (most of it black - attached). I just checked the SVN repository and the image changed on Mar 8 from 1800 width to 125. Revision 6614: Webpage background: Use a CSS and a new set of gif's to implement a background that works on all displays, regardless of width. Uses a new xymonbody.css stylesheet which can also control some other aspects of the webpage. From Francois Claire. So I will need to work out a fix which uses the new stylesheet CSS. Not before next week sorry. David.
▸
From: user-93c600de5418@xymon.invalid To: user-ca972c0c43a8@xymon.invalid; user-cbbf693f2c89@xymon.invalid Date: Wed, 8 Jun 2011 16:09:17 -0400 CC: xymon at xymon.com Subject: Re: [Xymon] html_mail.pl help where do i find the 1.3 version link please Date: Tue, 7 Jun 2011 16:03:12 -0400 From: user-ca972c0c43a8@xymon.invalid To: user-cbbf693f2c89@xymon.invalid CC: xymon at xymon.com Subject: Re: [Xymon] html_mail.pl help David, Ver 1.3 works very well. The link at the top is great. Two buglets I found, in the message subject you still have Hobbit, should be Xymon and there needs to be a space after Xymon and before the [ . Without the space the mail-ack process will not recognize the response. So other than my color banding in outlook things work well. Thanks for your time and efforts. -Kevin *From:*David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid] *Sent:* Monday, June 06, 2011 9:47 PM *To:* KING, KEVIN (ATTSI) *Cc:* xymon at xymon.com *Subject:* Re: [Xymon] html_mail.pl help On 6/06/11 9:24 PM, KING, KEVIN (ATTSI) wrote: David, I do not see the new version on Xymonton site. My apologies. I've uploaded the version I'm currently using in prod. It includes a link to the test page at the top of the message. Didn't get to finish testing a version using CSS for background info. Let me know if you still have a problem with background images using this version. David. -Kevin *From:*David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid] *Sent:* Monday, May 30, 2011 3:23 AM *To:* KING, KEVIN (ATTSI) *Cc:* xymon at xymon.com <mailto:xymon at xymon.com> *Subject:* Re: [Xymon] html_mail.pl help Kevin, I am clear on the Xymon-mailack. The text issue is resolved by the changing to text for the response. I am testing the delay feature. I sent a sample of the mail to you off list. All good! IS there a way to stop the repeating background color band? It should only have the one on the left side. Is that something outlook is doing or the output from the html_mail.pl? Sorry, I didn't realise the repeating background was still a problem. I misunderstood when you said you'd got it working... The repeating background image is odd. I haven't seen that before. What version of Outlook do you use? I just checked the HTML in the message, and the background images I am using (which I'm pretty sure are the default set) actually have an image width of 1800 pixels, so any repeat (which is actually default behaviour) should be way off to the right out of sight. The script should be fixed to use CSS body properties rather than various properties of the BODY tag, in which case the image could possibly be made less wide, although then the background colour would have to be black rather than the status colour. Unlikely that would cause much problem in this day and age though? Oh and anything on the mail message length? The full message is not sent. No link to the test page in the message. I've just gone back and checked what html_mail.pl code I am using in prod vs Xymonton version - I'd added a link at the top in my current prod version, but will use CSS to do backgrounds and make background explicitly not repeat in 'x' direction... I will create a new html_mail.pl v 1.3 tomorrow when I get time to clean it up. It would be easier if xymonton had some kind of version control then keeping it up to date would be a bit easier. David. -Kevin *From:*David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid] *Sent:* Thursday, May 26, 2011 7:01 PM *To:* KING, KEVIN (ATTSI) *Cc:* xymon at xymon.com <mailto:xymon at xymon.com> *Subject:* Re: [Xymon] html_mail.pl help Kevin, Thanks David, I have it running now. I am finding that when using the email ack function these messages are not getting parsed correctly. It is not seeing the delay or and comment text. I have never used or tested the email ack function, so not sure what it is expecting. Quite likely xymon-mailack doesn't handle MIME messages ("This is a multi-part message" would indicate this), since there would be too many options to have to cater for. It is possibly a side effect in your MUA (Outlook?) of receiving an html formatted alert e-mail that by default an HTML reply will be generated - can you configure your mail client to do a plain text e-mail reply? Thunderbird has this feature in the address book selectable per user. Did it work before you tried html_mail.pl ? I don't think it is a limitation of html_mail.pl as such, unless some extra headers could assist in hinting to a MUA to reply in plaintext only. David.-----Original Message-----From: David Baldwin [mailto:user-cbbf693f2c89@xymon.invalid]Sent: Wednesday, May 25, 2011 7:58 PMTo: KING, KEVIN (ATTSI)Cc: xymon at xymon.com <mailto:xymon at xymon.com>Subject: Re: [Xymon] html_mail.pl helpOn 26/05/11 2:26 AM, KING, KEVIN (ATTSI) wrote:David,Where can I dl this? I goggled for it. But the hits I got were in themessage archives and those are blocked to be at work.http://xymonton.org/doku.php/alertsDavid.-Kevin-----Original Message-----From: xymon-bounces at xymon.com <mailto:xymon-bounces at xymon.com>[mailto:xymon-bounces at xymon.com] OnBehalf Of David BaldwinSent: Tuesday, May 24, 2011 9:51 PMTo: Joe RindfleischCc: xymon at xymon.com <mailto:xymon at xymon.com>Subject: Re: [Xymon] html_mail.pl helpJoe,I got your name from the html_mail.pl script. I recently updatedtoxymon 4.3.2 and tried to go live in production.On all alerts it seems to send out alerts to this one emailaddress.it seems to send out to all that are intended to receive the emailsbut the one email has only two hosts that it monitors and getsalertsfrom. now it gets emails on the entire environment.I can't follow what the problem is.The script gets called from the alerts.cfg file via the SCRIPTkeyword.The hosts it applies to will be determined by the alerts.cfg filerules.The recipient for e-mails is specified by the RCPT environmentvariablewhen the script is called.Without the old and new config to compare, I can't help any further.I see a lot of references to BB, has this script been updated?The environment variable names have not changed that I know of, butIhaven't used it with 4.3.x myself yet.# Version Author Details# ------- ------ -------# 1.0 Martin Ward Initial version. See code fordetails.# 1.1 David Baldwin Clean up, remove hard-coded paths.# 1.2 David Baldwin format message as alternative partsfor plaintext and HTML viewsthanks for your helpI've CCed to the xymon list which is a better place to get generalhelp.David.--David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.au<http://www.ausport.gov.au/>;Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616user-cbbf693f2c89@xymon.invalid<mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT2617--Keep up to date with what's happening in Australian sport visithttp://www.ausport.gov.au <http://www.ausport.gov.au/>;This message is intended for the addressee named and may containconfidential and privileged information. If you are not the intendedrecipient please note that any form of distribution, copying or useofthis communication or the information in it is strictly prohibitedandmay be unlawful. If you receive this message in error, please deleteitand notify the sender.----David Baldwin - IT UnitAustralian Sports Commission www.ausport.gov.au<http://www.ausport.gov.au/>;Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616user-cbbf693f2c89@xymon.invalid<mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT 2617 -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au <http://www.ausport.gov.au/>; Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid <mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT 2617 -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au <http://www.ausport.gov.au/>; Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid <mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT 2617 -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au <http://www.ausport.gov.au/>; Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid <mailto:user-cbbf693f2c89@xymon.invalid> Leverrier Street Bruce ACT 2617
-- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617 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 Nick Camaldi
That worked for me and i added it into production. Thanks for the great work! Nick
Date: Thu, 9 Jun 2011 18:58:47 +1000 From: user-cbbf693f2c89@xymon.invalid To: user-93c600de5418@xymon.invalid CC: user-ca972c0c43a8@xymon.invalid; user-cbbf693f2c89@xymon.invalid Subject: Re: [Xymon] html_mail.pl help Nick and Kevin, This isn't tested, but may do the trick. Let me know how it goes. Forward me a copy of the message it generates. I have lifted the CSS from SVN for Xymon, so should be OK. The subject line tag is trying to be tricky to choose between Hobbit and Xymon. Feel free to hard code to suit...
▸
David. -- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 user-cbbf693f2c89@xymon.invalid Leverrier Street Bruce ACT 2617 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.