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

d.tom.schmitt at L-3com.com d.tom.schmitt at L-3com.com
Tue Aug 17 17:46:11 CEST 2010


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 jim at widget.com 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 boss at widget.com         REPEAT=365d DURATION>59m

    MAIL bigboss at widget.com   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

801-594-3030

D.Tom.Schmitt at L-3Com.com

           \\\\||////

             \ ~  ~ /  

             | @  @ |   

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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20100817/b9cab933/attachment.html>


More information about the Xymon mailing list