All, I have formated the messages from my devmon tests as html tables, which looks very nice on the Xymon web pages, but not so good when emailed out in alerts. Is there any trick to getting the html tags replaced for tabs and cr so it looks ok on email? I guess a bit of a script with some regex transforms would do it. Thanks, ian.
Ian,
All,
I have formated the messages from my devmon tests as html tables, which looks very nice on the Xymon web pages, but not so good when emailed out in alerts. Is there any trick to getting the html tags replaced for tabs and cr so it looks ok on email?
I guess a bit of a script with some regex transforms would do it.
You could always send HTML e-mail - try http://xymonton.org/alerts:html_mail1.2
There may be some slight compatibility issues with latest Xymon (environment variable names, etc) - I have some updates that I have yet to merge back.
Thanks, David.
-- David Baldwin - Senior Systems Administrator (Datacentres + Networks) Information and Communication Technology Services Australian Sports Commission http://ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 david.baldwin at ausport.gov.au 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.
On Friday 18 May 2012 11:01:02 ian norfolk wrote:
All, I have formated the messages from my devmon tests as html tables, which looks very nice on the Xymon web pages, but not so good when emailed out in alerts. Is there any trick to getting the html tags replaced for tabs and cr so it looks ok on email? I guess a bit of a script with some regex transforms would do it. We use the command links for that. Save the content in /tmp/TEMP1 and use links to convert from html to tekst:
links -dump /tmp/TEMP1 > /tmp/TEMP2
Stef
participants (3)
-
david.baldwin@ausport.gov.au
-
inorfolk@hotmail.com
-
stef.coene@docum.org