[Xymon] removing <!-- [flags:ordAstLe] > from custom email script

Simioni, Rodney rsimion at transunion.com
Fri Oct 3 01:16:22 CEST 2014


Jeremy,
NEWMSG=`echo "$BBALPHAMSG" | grep -v '<!--[^>]*>'`

Worked! Thanks!

Rod

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Jeremy Laidman
Sent: Thursday, October 02, 2014 5:53 PM
To: usa ims; xymon at xymon.com
Subject: Re: [Xymon] removing <!-- [flags:ordAstLe] > from custom email script


Have you tried using FORMAT=SMS on alerts.cfg?

Or try this in your script:

NEWMSG=`echo "$BBALPHAMSG" | grep -v '<!--[^>]*>'`

J
On 03/10/2014 12:19 AM, "usa ims" <usaims at yahoo.com<mailto:usaims at yahoo.com>> wrote:
Hey Jeremy -- I'm Rod with Boca Raton, Florida USA.

Thanks for the advice. Is there any way to eliminate that whole line?

Here is the output of one test:
###
10.204.40.148:BobProd red [0]
green

            BIG BROTHER MESSAGE
            -------------------
            DATACENTER : D0
            HOSTNAME : 10.x.x.x
            STATE : Normal
            STATUS : Green
            TEST : BobProd EchoTest
            RESPONSE SUCCEEDED : 7.628518237 sec
            IP : 10.xxx.xxx.xxx
            EVENT TIME : Wed 01 Oct 2014 03:35:24 PM EDT


See http://localhost/xymon-cgi/svcstatus.sh?HOST=10.204.40.148&SERVICE=BobProd
###

It would be nice to eliminate "10.xxx.xxx.xxx:BobProd red [0]"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20141002/a8f178e1/attachment.html>


More information about the Xymon mailing list