Xymon Mailing List Archive search

Exclude alerts on weekends

list Gregory Thomas
Sat, 11 Apr 2009 21:16:27 -0400
Message-Id: <user-dc5f773dfca5@xymon.invalid>

Believe if you change the * to a W in the TIME argument then you will restrict the alert to Weekdays.

So change:
TIME=*:0700:2100

to:
TIME=W:0700:2100

Believe I saw that in the bb-hosts man page. W for week days or 0-6 for a specific day - useful if you want to IGNORE a particular day, such as Sunday or day and time for scheduled downtime.

 -----Original Message-----
From:   Meserole, Keith W. [mailto:user-73279f70f6bb@xymon.invalid]
Sent:   Saturday, April 11, 2009 08:34 PM Eastern Standard Time
To:     user-ae9b8668bcde@xymon.invalid
Subject:        [hobbit] Exclude alerts on weekends

Hi all,


Just a general Xymon question.   What is the best way to exclude certain days in Xymon alerts?


For example the statement below will limit alerts to 7AM through 9 PM but how would I exclude Saturday and Sunday from this same alert?


PAGE=%.*/page_name SERVICE=conn COLOR=red TIME=*:0700:2100 mail user-75ecfc10f124@xymon.invalid  DURATION>50 REPEAT=8h RECOVERED