aboutsummaryrefslogtreecommitdiff
path: root/bytemark_policy.txt
blob: 22378aef2805931aba6ee8f86271ecea242653b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
server {
  ip "0.0.0.0"
  port 32741
  log_file STDOUT
  log_level 0
  database "sqlite3:///tmp/mauve_test.db"
  transmission_id_expire_time 600
  
  web_interface {
    port 1288
  }
}

notification_method("xmpp") {
  jid "mauveserv@chat.bytemark.co.uk"
  password "foo"
}

notification_method("email") {
  # add in SMTP server, username, password etc.
  # default to sending through localhost
  from "matthew@bytemark.co.uk"
  server "bytemail.bytemark.co.uk"
  subject_prefix "[Bytemark alerts] "
  #deliver_to_file "/tmp/alerts.txt"
}

notification_method("sms") {
  provider "AQL"
  
  username "bytemark"
  password "foo"
  from "01904890890"
  max_messages_per_alert 3
}

person("office") {
  #all { xmpp "office@conference.chat.bytemark.co.uk" }
  all { email "matthew@bytemark.co.uk" }
}

person("mbloch") {
  urgent { sms("x") }
  normal { xmpp("mbloch@chat.bytemark.co.uk") || email("matthew@bytemark.co.uk") }
  low { email("matthew@bytemark.co.uk") }
}

person("ptaphouse") {
  urgent { sms("x") }
  normal { xmpp("ptaphouse@chat.bytemark.co.uk") || email("pete@bytemark.co.uk") }
  low { email("pete@bytemark.co.uk") }
}

person("chris") {
}

alert_group {
  includes {
    source == "supportbot" || source == "managed-monitor" 
  }
  
  acknowledgement_time 90.minutes
  
  level URGENT
  
  notify("office") {
    every 30.minutes
  }
  
  notify("mbloch") {
    every 60.minutes
    hours_in_day(0..8, 17..23)
    unacknowledged(120.minutes)
  }
}

alert_group {
  includes { source == "network-crit" }
  level URGENT
  acknowledgement_time 90.minutes
  
  notify("office") { every 15.minutes }
  notify("ptaphouse") { every 30.minutes }
  notify("mbloch") { 
    every 30.minutes
    unacknowledged(95.minutes)
  }
}

alert_group {
  includes { source == "networkmonitor" }
  acknowledgement_time 7.days
  
  notify("office") { every 120.minutes }
}

alert_group {
  includes { source == "disks" }
  acknowledgement_time 1.day
  
  notify("chris") { every 4.hours }
  notify("mbloch","ptaphouse") { 
    every 12.hours
    unacknowledged 24.hours
  }
  
}

alert_group {
  includes { source == "pxefs" }
  level URGENT
  
  notify("office") { every 1.hour }
  notify("mbloch") { 
    every 3.hours
    unacknowledged 24.hours
  }
}  

alert_group("default") {
  level LOW
  
  notify("office") { every 3.hours }
}