[Xymon] mapping purple to red, and wild card for COMPACT
Root, Paul T
Paul.Root at CenturyLink.com
Mon Oct 14 20:05:04 CEST 2019
Alerts.cfg can key off a test being purple.
-----Original Message-----
From: Xymon <xymon-bounces at xymon.com> On Behalf Of Adam Thorn
Sent: Monday, October 14, 2019 11:44 AM
To: xymon at xymon.com
Subject: Re: [Xymon] mapping purple to red, and wild card for COMPACT
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
https://imss91-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2f%2flists.xymon.com%2fmailman%2flistinfo%2fxymon&umid=3415AA2A-94E1-F105-BC36-EBE3952656EC&auth=19120be9529b25014b618505cb01789c5433dae7-d727fa6fbb6312fd0749902d03a7dc7c3a60f7f7
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
More information about the Xymon
mailing list