Xymon Mailing List Archive search

How can i change the format for e-mail alert.

list Daniel Nordquist
Wed, 9 Mar 2011 11:23:08 -0500
Message-Id: <user-af6d4d1f579d@xymon.invalid>

Thank you!  That works pretty well and makes the text much more readable.  I added a dash to replace the tags since having nothing to replace it left the text all jumbled together, but a space for some reason stripped the leading line and removed my high priority tags for the email.

Thanks!
Dan


From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Geoff Hallford
Sent: Wednesday, March 09, 2011 8:25 AM
To: xymon at xymon.com
Subject: Re: [Xymon] How can i change the format for e-mail alert.

I use a custom script to send emails and I had that problem as well. What I do prior to sending the email via the custom script is parse out the HTML using sed. It replaces the <BR> tag with a newline and removes all other items that are in the format "<anything>".

BBALPHAMSG=`echo -e "$BBALPHAMSG" | sed -e 's/<BR[^>]*>/\n/'g -e 's/<[^>]*>//g'`


On Wed, Mar 9, 2011 at 8:24 AM, Geoff Hallford <user-dc9e7f30b1e2@xymon.invalid<mailto:user-dc9e7f30b1e2@xymon.invalid>> wrote:
I use a custom script to send emails and I had that problem as well. What I do prior to sending the email via the custom script is parse out the HTML using sed. It replaces the <BR> tag with a newline and removes all other items that are in the format "<anything>".

BBALPHAMSG=`echo -e "$BBALPHAMSG" | sed -e 's/<BR[^>]*>/\n/'g -e 's/<[^>]*>//g'`

"We have now sunk to a depth at which restatement of the obvious is the first duty of intelligent men" --George Orwell


On Tue, Mar 8, 2011 at 2:55 PM, Josh Luthman <user-4c45a83f15cb@xymon.invalid<mailto:user-4c45a83f15cb@xymon.invalid>> wrote:
As a side note I use SMS format to my mobile via text (that is, being on Verizon user-d9a687bc666a@xymon.invalid<mailto:user-d9a687bc666a@xymon.invalid>).  Works quite well.

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Tue, Mar 8, 2011 at 2:32 PM, Tim McCloskey <user-440820cc07d6@xymon.invalid<mailto:user-440820cc07d6@xymon.invalid>> wrote:
Also, I'm sending this data as EMAIL to pagers, phone, mail accounts.  SMS format may not even be needed since I'm altering the standard output to fit our needs.
From: Nordquist, Daniel [user-b7c65cb59f49@xymon.invalid<mailto:user-b7c65cb59f49@xymon.invalid>]
Sent: Tuesday, March 08, 2011 11:14 AM
To: Tim McCloskey; xymon at xymon.com<mailto:xymon at xymon.com>
Subject: RE: [Xymon] How can i change the format for e-mail alert.

Doesn't the format=sms strip the subject from the email?


This e-mail message and any attached files are confidential and are intended solely for the use of the addressee(s) named above. If you are not the intended recipient, any review, use, or distribution of this e-mail message and any attached files is strictly prohibited.

This communication may contain material protected by Federal privacy regulations, attorney-client work product, or other privileges. If you have received this confidential communication in error, please notify the sender immediately by reply e-mail message and permanently delete the original message. To reply to our email administrator directly, send an email to: user-40803320aaf5@xymon.invalid .

If this e-mail message concerns a contract matter, be advised that no employee or agent is authorized to conclude any binding agreement on behalf of Orlando Health by e-mail without express written confirmation by an officer of the corporation. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Orlando Health.