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

Adam Thorn alt36 at cam.ac.uk
Mon Oct 14 18:44:16 CEST 2019


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


More information about the Xymon mailing list