Exclude alerts on weekends
list Keith W. Meserole
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
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
list Malcolm Hunter
▸
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