Xymon Mailing List Archive search

help with setting up pager rule

3 messages in this thread

list Scott Smith · Fri, 27 Jan 2006 15:18:58 -0500 ·
I'm having problems getting a pager rule to work. What I want is to get paged
for any conn (connection) that is down more than 10 minutes, but not during
"normal business hours" (ie, M-F 8a-5p).

Here is what I have:

HOST=%.*\.(na|internal)\.pg\.com SERVICE=conn TIME=W:0800:1700 DURATION>10
    SCRIPT /usr/local/bin/skytel 800####### FORMAT=sms

Here's what happens. I get paged during the middle of the day when a system goes
down.

If I run the rule through the "test" mode, then it says it fails on the duration
rule. So if I remove the duration rule and test again, then it says it fails on
the time rule.

But, as I said, I'm getting pages in the middle of the day (when we're doing
maintenance).

Thoughts? Am I writing this rule correctly?


Scott
Scott Smith
XXX-XXX-XXXX
list Larry Barber · Fri, 27 Jan 2006 14:25:34 -0600 ·
You have the TIME filter backwards, it needs to be
W:0000:0800,W:1700:2400,06:0000:2400, the way you have it it will only pass
alerts on weekdays from 8:00 to 5:00.

Thanks,
Larry Barber
quoted from Scott Smith

On 1/27/06, user-f4bece3a3245@xymon.invalid <user-f4bece3a3245@xymon.invalid> wrote:
I'm having problems getting a pager rule to work. What I want is to get
paged
for any conn (connection) that is down more than 10 minutes, but not
during
"normal business hours" (ie, M-F 8a-5p).

Here is what I have:

HOST=%.*\.(na|internal)\.pg\.com SERVICE=conn TIME=W:0800:1700 DURATION>10
    SCRIPT /usr/local/bin/skytel 800####### FORMAT=sms

Here's what happens. I get paged during the middle of the day when a
system goes
down.

If I run the rule through the "test" mode, then it says it fails on the
duration
rule. So if I remove the duration rule and test again, then it says it
fails on
the time rule.

But, as I said, I'm getting pages in the middle of the day (when we're
doing
maintenance).

Thoughts? Am I writing this rule correctly?


Scott
Scott Smith
XXX-XXX-XXXX

list Scott Smith · Fri, 27 Jan 2006 16:03:31 -0500 ·
Ah, my bad.

Thanks!


Scott


                      Larry Barber                                                                                                            
              <user-6ef9c2864140@xymon.invalid>       To:     user-ae9b8668bcde@xymon.invalid                                                                               
                                         cc:                                                                                                  
               01/27/2006 03:25 PM       Subject:     Re: [hobbit] help with setting up pager rule                                            
          Please respond to hobbit                                                                                                            
quoted from Larry Barber
                                                                                                                                              
                                                                                                                                              
You have the TIME filter backwards, it needs to be
W:0000:0800,W:1700:2400,06:0000:2400, the way you have it it will only pass
alerts on weekdays from 8:00 to 5:00.

Thanks,
Larry Barber

On 1/27/06, user-f4bece3a3245@xymon.invalid <user-f4bece3a3245@xymon.invalid> wrote:
I'm having problems getting a pager rule to work. What I want is to get paged
for any conn (connection) that is down more than 10 minutes, but not during
"normal business hours" (ie, M-F 8a-5p).

Here is what I have:

HOST=%.*\.(na|internal)\.pg\.com SERVICE=conn TIME=W:0800:1700 DURATION>10
    SCRIPT /usr/local/bin/skytel 800####### FORMAT=sms

Here's what happens. I get paged during the middle of the day when a system goes
down.

If I run the rule through the "test" mode, then it says it fails on the duration
rule. So if I remove the duration rule and test again, then it says it fails on
the time rule.

But, as I said, I'm getting pages in the middle of the day (when we're doing
maintenance).

Thoughts? Am I writing this rule correctly?