Xymon Mailing List Archive search

Exclude alerts on weekends

3 messages in this thread

list Keith W. Meserole · Sat, 11 Apr 2009 20:33:52 -0400 ·
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
list Gregory Thomas · Sat, 11 Apr 2009 21:16:27 -0400 ·
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.
quoted from Keith W. Meserole

 -----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
list Malcolm Hunter · Sun, 12 Apr 2009 03:30:14 +0200 ·
quoted from Gregory Thomas
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
You just include only weekdays:

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

(see NKTIME on bb-hosts man page).

Regards,
Malcolm
-- 
Technical copy-editor & proofreader

KDE Proofreading Team
KDE British English Translation Team

http://l10n.kde.org/team-infos.php?teamcode=en_GB

Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a