Xymon Mailing List Archive search

Repeat paging without REPEAT

2 messages in this thread

list Pat Vaughan · Fri, 16 Sep 2005 08:51:12 -0400 (EDT) ·
I have some hosts that were set to repeatedly page every 20 minutes for 2
hours.  Of course, when an entire team got into a meeting and they all got
the same page every 20 minutes for an hour, I was told to turn that
"feature" off.

But, after removing the REPEAT keyword in the hobbit-alerts.cfg file I got
the pages this morning at 8:00 AM and 8:30 AM.  The time restriction
keywords worked perfectly, but I don't see where I'm getting the repeats
from.  I also stopped and restarted hobbitd after editing the file.

Here are the relevant lines from my hobbit-alerts.cfg:
HOST=%(cnpe|cnpf|cnpg|cnph).pri.xxx.net|hnae.ro.xxx.net
        SCRIPT /usr/local/bin/scripts/hobbit-mailpage $UNIX_PAGERMAIL
SERVICE=%(cpu|disk|errpt|msgs|procs|ssh|telnet|vmio) COLOR=red
TIME=12345:0800:1700
        SCRIPT /usr/local/bin/scripts/hobbit-mailpage
$MIDDLEWARE_PAGERMAIL
SERVICE=%(cpu|disk|errpt|msgs|procs|ssh|telnet|vmio) COLOR=red
TIME=12345:0800:1700
list Henrik Størner · Fri, 16 Sep 2005 16:54:11 +0200 ·
quoted from Pat Vaughan
On Fri, Sep 16, 2005 at 08:51:12AM -0400, Pat Vaughan wrote:
But, after removing the REPEAT keyword in the hobbit-alerts.cfg file I got
the pages this morning at 8:00 AM and 8:30 AM.  The time restriction
keywords worked perfectly, but I don't see where I'm getting the repeats
from.
If there's no REPEAT setting, it defaults to REPEAT=30m.

It seems I haven't thought of the possibility that you'd want to NOT
repeat an alert, so the best you can do right now is to set a very large
repeat setting, say REPEAT=365d


Henrik