[Xymon] Preventing Purple - Periodical Checks

Tres Finocchiaro tres.finocchiaro at gmail.com
Mon Sep 22 22:27:30 CEST 2014


@Paul/Mike,

Top notch.  I decided to put the entire delay value in the string to
prevent a syntax error if it's blank.  In our case, we check a few times
from noon until 6PM, so I chose 20 hours.

# Delay for Xymon to prevent purple
> DELAY="+20h";
> # Friday, add two more days
> if [[ $(date +%u) == 5 ]] ; then
>    DELAY="+68h";
> fi
> # [...]
> xymon 127.0.0.1 "status${DELAY} $server.$service $color $msg"


P.S. I don't know how we ever survived on a Windows platform.  This product
was meant for Linux and it's tremendously useful scripting capabilities. :)

Thanks again.

-Tres
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140922/33ca3908/attachment.html>


More information about the Xymon mailing list