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

Nordquist, Daniel Daniel.Nordquist at orlandohealth.com
Wed Mar 9 17:23:08 CET 2011


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 <geoff.hallford at gmail.com<mailto:geoff.hallford at gmail.com>> 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 <josh at imaginenetworksllc.com<mailto:josh at imaginenetworksllc.com>> wrote:
As a side note I use SMS format to my mobile via text (that is, being on Verizon 9375551234 at vtext.com<mailto:9375551234 at vtext.com>).  Works quite well.

Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373


On Tue, Mar 8, 2011 at 2:32 PM, Tim McCloskey <tm at freedom.com<mailto:tm at freedom.com>> 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 [Daniel.Nordquist at orlandohealth.com<mailto:Daniel.Nordquist at orlandohealth.com>]
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?
_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon


_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon



________________________________
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: postmaster at orlandohealth.com .

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110309/6f9d5d41/attachment.html>


More information about the Xymon mailing list