[Xymon] mapping purple to red, and wild card for COMPACT

Ron Cohen rcohen55 at gmail.com
Tue Oct 22 16:35:05 CEST 2019


Working fine. Thanks.

⁣Get BlueMail for Android ​

On 14 Oct 2019, 18:09, at 18:09, Adam Thorn <alt36 at cam.ac.uk> wrote:
>On 14/10/2019 14:57, Ron Cohen wrote:
>
>> Still couldn't find a way around the mapping of purple to red. Will 
>> appreciate any help.
>
>I've no idea is this is natively possible, but you could for example 
>periodically run a script on your xymon server along the lines of:
>
>==== begin ====
>#!/bin/bash
>for LINE in $(/usr/lib/xymon/client/bin/xymon 127.0.0.1 "xymondboard 
>test=c_.* color=purple fields=hostname,testname"); do
>
>HOSTNAME=$(echo $LINE | cut -d '|' -f 1)
>TESTNAME=$(echo $LINE | cut -d '|' -f 2)
>
>/usr/lib/xymon/client/bin/xymon 127.0.0.1 "status+24h 
>$HOSTNAME.$TESTNAME red some error message if you like"
>
>done
>==== end ====
>
>to find the hostname and testname for all purple c_.* tests and send a 
>corresponding red status message with a lifetime of 24h (or whatever 
>length you prefer).
>
>Adam
>_______________________________________________
>Xymon mailing list
>Xymon at xymon.com
>http://lists.xymon.com/mailman/listinfo/xymon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20191022/f2d6dfaa/attachment.htm>


More information about the Xymon mailing list