Xymon Mailing List Archive search

Alert delays

6 messages in this thread

list Kevin Hanrahan · Fri, 28 Jan 2005 21:44:54 -0500 ·
How do I set delays for alerts? In BB I think it was by using ~X. I want to
set an initial delay of 2 minutes.

Thanks

kevin
list Gordon Thiesfeld · Fri, 28 Jan 2005 20:51:42 -0600 ·
Try  DURATION>2

 -----Original Message-----
From: 	Kevin Hanrahan [mailto:user-7211a77fa045@xymon.invalid]
Sent:	Fri Jan 28 20:46:38 2005
To:	'user-ae9b8668bcde@xymon.invalid'
Subject:	[hobbit] Alert delays

How do I set delays for alerts? In BB I think it was by using ~X. I want to
set an initial delay of 2 minutes.

Thanks

kevin
list David Gore · Sat, 29 Jan 2005 18:55:01 +0000 ·
Ok, the alerts are driving me mad. What I would like to do is send out a   mail/page for any alert that turns red and is red for 15 minutes or longer.  I assumed DURATION>15 would work?  DURATION>15m results in rather large number by the way that may indicate a bug, 'h' works and leaving off 'm' seems to parse OK.  None of these work, and there is nothing in ~/log/page.log.  Here are our rules and a dump.

COLOR=red
         MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h

SERVICE=conn,procs,disk,vmem EXHOST=dante,cayhp2,cayhp3
         MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h DURATION>15

HOST=dante,cayhp2,cayhp3 COLOR=red
         MAIL user-f8a4facf6ed1@xymon.invalid REPEAT=1d

HOST=nmsbb-get SERVICE=pri-1 COLOR=red
         MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h DURATION<29

COLOR=red
         SCRIPT /export/home/rbaldwin/hobbit.sh

hobbit at nmsbb-get ~/server> ./bin/bbcmd --env=etc/hobbitserver.cfg hobbitd_alert --dump-config

COLOR=red
         MAIL user-66f2c06d9d16@xymon.invalid REPEAT=480

EXHOST=dante,cayhp2,cayhp3 SERVICE=conn,procs,disk,vmem
         MAIL user-66f2c06d9d16@xymon.invalid REPEAT=480 DURATION>15

HOST=dante,cayhp2,cayhp3 COLOR=red
         MAIL user-f8a4facf6ed1@xymon.invalid REPEAT=1440

HOST=nmsbb-get SERVICE=pri-1 COLOR=red
         MAIL user-66f2c06d9d16@xymon.invalid REPEAT=480 COLOR=red DURATION<29

COLOR=red

We don't mind re-simplyfying just for paging on ALL red alarms that are RED for 15 minutes or longer and wacking all the other rules that do not work.  Thanks for any help.


~ David Gore
list David Gore · Sat, 29 Jan 2005 22:56:53 +0000 ·
COLOR=red
   MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h DURATION>15

Is this a possible rule, or do you need BOTH a HOST and a SERVICE for ANY rule?  Or do you need at least one, HOST or a SERVICE?  Can I have a rule for ALL red alarms?  This is running on Solaris 9.

2005-01-29 22:48:41 criteriamatch rchimpm1:procs rchimpm1,rsoimpm1:(NULL):(NULL)
2005-01-29 22:48:41 Checking explicit color setting 10000000060 against 4 gives 1
2005-01-29 22:48:41 Found a first matching rule
2005-01-29 22:48:41 criteriamatch rchimpm1:procs (NULL):(NULL):(NULL)
2005-01-29 22:48:41 failed minduration 0<900

David Gore (v965-3670)
Enhanced Technology Support (ETS)
Network Management Systems (NMS)
IMPACT Transport Team Lead - SCSA, SCNA
Page: 1-800-PAG-eMCI pin 1406090
Vnet: 965-3676
quoted from David Gore


David Gore wrote:
Ok, the alerts are driving me mad. What I would like to do is send out a  mail/page for any alert that turns red and is red for 15 minutes or longer.  I assumed DURATION>15 would work?  DURATION>15m results in rather large number by the way that may indicate a bug, 'h' works and leaving off 'm' seems to parse OK.  None of these work, and there is nothing in ~/log/page.log.  Here are our rules and a dump.

COLOR=red
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h

SERVICE=conn,procs,disk,vmem EXHOST=dante,cayhp2,cayhp3
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h DURATION>15

HOST=dante,cayhp2,cayhp3 COLOR=red
        MAIL user-f8a4facf6ed1@xymon.invalid REPEAT=1d

HOST=nmsbb-get SERVICE=pri-1 COLOR=red
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h DURATION<29

COLOR=red
        SCRIPT /export/home/rbaldwin/hobbit.sh

hobbit at nmsbb-get ~/server> ./bin/bbcmd --env=etc/hobbitserver.cfg hobbitd_alert --dump-config

COLOR=red
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=480

EXHOST=dante,cayhp2,cayhp3 SERVICE=conn,procs,disk,vmem
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=480 DURATION>15

HOST=dante,cayhp2,cayhp3 COLOR=red
        MAIL user-f8a4facf6ed1@xymon.invalid REPEAT=1440

HOST=nmsbb-get SERVICE=pri-1 COLOR=red
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=480 COLOR=red DURATION<29

COLOR=red

We don't mind re-simplyfying just for paging on ALL red alarms that are RED for 15 minutes or longer and wacking all the other rules that do not work.  Thanks for any help.


~ David Gore
list David Gore · Sat, 29 Jan 2005 23:39:01 +0000 ·
RULES:

HOST=rchimpm1,rsoimpm1 COLOR=red,yellow
          MAIL user-66f2c06d9d16@xymon.invalid DURATION>15

HOST=lismore
         SCRIPT /export/home/rbaldwin/hobbit.sh PAGE RECOVERED REPEAT=8h

DUMP:

HOST=rchimpm1,rsoimpm1 COLOR=yellow,red
         MAIL user-2a0265e351ac@xymon.invalid REPEAT=30 COLOR=yellow,red DURATION>15

HOST=lismore
         SCRIPT /export/home/rbaldwin/hobbit.sh PAGE FORMAT=SCRIPT REPEAT=480 RECOVERED

debug:
quoted from David Gore

2005-01-29 22:48:41 criteriamatch rchimpm1:procs rchimpm1,rsoimpm1:(NULL):(NULL)
2005-01-29 22:48:41 Checking explicit color setting 10000000060 against 4 gives 1
2005-01-29 22:48:41 Found a first matching rule
2005-01-29 22:48:41 criteriamatch rchimpm1:procs (NULL):(NULL):(NULL)
2005-01-29 22:48:41 failed minduration 0<900

so far so good...

2005-01-29 23:32:38 Got page message from cosimpm1:rds
2005-01-29 23:32:38 0 alerts to go
2005-01-29 23:33:38 0 alerts to go

Nothing in between, so it started well and didn't go anywhere

bummer.
quoted from David Gore


David Gore wrote:
COLOR=red
  MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h DURATION>15

Is this a possible rule, or do you need BOTH a HOST and a SERVICE for ANY rule?  Or do you need at least one, HOST or a SERVICE?  Can I have a rule for ALL red alarms?  This is running on Solaris 9.

2005-01-29 22:48:41 criteriamatch rchimpm1:procs rchimpm1,rsoimpm1:(NULL):(NULL)
2005-01-29 22:48:41 Checking explicit color setting 10000000060 against 4 gives 1
2005-01-29 22:48:41 Found a first matching rule
2005-01-29 22:48:41 criteriamatch rchimpm1:procs (NULL):(NULL):(NULL)
2005-01-29 22:48:41 failed minduration 0<900

David Gore (v965-3670)
Enhanced Technology Support (ETS)
Network Management Systems (NMS)
IMPACT Transport Team Lead - SCSA, SCNA
Page: 1-800-PAG-eMCI pin 1406090
Vnet: 965-3676


David Gore wrote:
Ok, the alerts are driving me mad. What I would like to do is send out a  mail/page for any alert that turns red and is red for 15 minutes or longer.  I assumed DURATION>15 would work?  DURATION>15m results in rather large number by the way that may indicate a bug, 'h' works and leaving off 'm' seems to parse OK.  None of these work, and there is nothing in ~/log/page.log.  Here are our rules and a dump.

COLOR=red
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h

SERVICE=conn,procs,disk,vmem EXHOST=dante,cayhp2,cayhp3
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h DURATION>15

HOST=dante,cayhp2,cayhp3 COLOR=red
        MAIL user-f8a4facf6ed1@xymon.invalid REPEAT=1d

HOST=nmsbb-get SERVICE=pri-1 COLOR=red
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h DURATION<29

COLOR=red
        SCRIPT /export/home/rbaldwin/hobbit.sh

hobbit at nmsbb-get ~/server> ./bin/bbcmd --env=etc/hobbitserver.cfg hobbitd_alert --dump-config

COLOR=red
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=480

EXHOST=dante,cayhp2,cayhp3 SERVICE=conn,procs,disk,vmem
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=480 DURATION>15

HOST=dante,cayhp2,cayhp3 COLOR=red
        MAIL user-f8a4facf6ed1@xymon.invalid REPEAT=1440

HOST=nmsbb-get SERVICE=pri-1 COLOR=red
        MAIL user-66f2c06d9d16@xymon.invalid REPEAT=480 COLOR=red DURATION<29

COLOR=red

We don't mind re-simplyfying just for paging on ALL red alarms that are RED for 15 minutes or longer and wacking all the other rules that do not work.  Thanks for any help.


~ David Gore
list Henrik Størner · Wed, 2 Feb 2005 22:55:08 +0100 ·
quoted from David Gore
On Sat, Jan 29, 2005 at 10:56:53PM +0000, David Gore wrote:
COLOR=red
  MAIL user-66f2c06d9d16@xymon.invalid REPEAT=8h DURATION>15

Is this a possible rule, or do you need BOTH a HOST and a SERVICE for 
ANY rule?  Or do you need at least one, HOST or a SERVICE?  Can I have a 
rule for ALL red alarms?  This is running on Solaris 9.
The rule is valid, and should work. I know now that DURATION is
completely broken in beta6 and will delay your alerts 24 hours,
so you probably won't see any alerts going out.


Henrik