22 Sep
2014
22 Sep
'14
8:27 p.m.
@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