<html><head></head><body style="zoom: 0%;"><div dir="auto">Working fine. Thanks.<br><br></div>
<div dir="auto"><!-- tmjah_g_1299s -->Get <!-- tmjah_g_1299e --><a href="http://www.bluemail.me/r?b=15704"><!-- tmjah_g_1299s -->BlueMail for Android<!-- tmjah_g_1299e --></a><!-- tmjah_g_1299s --> <!-- tmjah_g_1299e --></div>
<div class="gmail_quote" >On 14 Oct 2019, at 18:09, Adam Thorn <<a href="mailto:alt36@cam.ac.uk" target="_blank">alt36@cam.ac.uk</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">On 14/10/2019 14:57, Ron Cohen wrote:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Still couldn't find a way around the mapping of purple to red. Will <br> appreciate any help.<br></blockquote><br>I've no idea is this is natively possible, but you could for example <br>periodically run a script on your xymon server along the lines of:<br><br>==== begin ====<br>#!/bin/bash<br>for LINE in $(/usr/lib/xymon/client/bin/xymon <a href="http://127.0.0.1">127.0.0.1</a> "xymondboard <br>test=c_.* color=purple fields=hostname,testname"); do<br><br>HOSTNAME=$(echo $LINE | cut -d '|' -f 1)<br>TESTNAME=$(echo $LINE | cut -d '|' -f 2)<br><br>/usr/lib/xymon/client/bin/xymon <a href="http://127.0.0.1">127.0.0.1</a> "status+24h <br>$HOSTNAME.$TESTNAME red some error message if you like"<br><br>done<br>==== end ====<br><br>to find the hostname and testname for all purple c_.* tests and send a <br>corresponding red status message with a lifetime of 24h (or whatever <br>length you prefer).<br><br>Adam<br><hr><br>Xymon mailing list<br>Xymon@xymon.com<br><a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br></pre></blockquote></div></body></html>