Xymon Mailing List Archive search

TS - can you combine multiple notifications into a macro/grouping?

list Tom Schmitt
Tue, 17 Aug 2010 09:46:11 -0600
Message-Id: <user-0776485a874a@xymon.invalid>

I am trying to simplify the hobbit-alerts.cfg file.

I understand how to do a simple macro.

 
In my case, I will have something like:

n  Oncall person available from 6pm-6am M-F

n  Oncall person available all day Sat and Sun

n  During business hours, normal alerts will be done

n  During business hours, and no response from the appropriate people,
after 30 minutes, notify the oncall person

n  Also, escalate to manager after 60 minutes 

n  Also, escalate to the managers manager after 90 minutes

 
EXAMPLE ENTRY:


Host=abc.widget.com  recovered

    # Sat & Sun all day

    SCRIPT /.../oncall.sh <list-name> TIME="0,6:0001:2400" REPEAT=365d

    # Early morning M-F

    SCRIPT /.../oncall.sh <list-name> TIME="1-5:0001:0559" REPEAT=365d

    # Late evening M-F

    SCRIPT /.../oncall.sh <list-name> TIME="1-5:1801:2400" REPEAT=365d

 
    # Normal business hours M-F 6am-6pm

    MAIL user-2dd359ee113b@xymon.invalid TIME="1-5:0600:1800" REPEAT=365d

 
    # Normal business hours but no response - send to oncall

    SCRIPT= /.../oncall.sh <list-name> TIME="1-5:0600:1800" REPEAT=365d
DURATION>30m

 
    # ESCALATION any time

    MAIL user-7821a9b41575@xymon.invalid         REPEAT=365d DURATION>59m

    MAIL user-521e68376445@xymon.invalid   REPEAT=365d DURATION>89m

 
I don't want to cut and paste this type of alert list for hundreds of
servers/devices.

Is there a way to consolidate into a single entry to keep the
hobbit-alerts.cfg file manageable?

 
oncall.sh does a lookup in a table for the oncall person for that date
range.

 
Thanks,

 
Tom Schmitt

XXX-XXX-XXXX

user-9c1ae820b621@xymon.invalid

           \\\\||////

             \ ~  ~ /  

             | @  @ |   

--oOo---(_)---oOo--