Xymon Mailing List Archive search

Preventing Purple - Periodical Checks

list Tres Finocchiaro
Mon, 22 Sep 2014 16:27:30 -0400
Message-Id: <user-8b2d0c3077b2@xymon.invalid>

@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