[Xymon] removing <!-- [flags:ordAstLe] > from custom email script
Jeremy Laidman
jlaidman at rebel-it.com.au
Thu Oct 2 23:52:33 CEST 2014
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> 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/20141003/69c14e00/attachment.html>
More information about the Xymon
mailing list