haproxy plugin: 2 more alarm added (backend status, last_collected)
Ilya committed
Jan 12, 2017 at 18:46 UTC
2195aef77259bf89a8b695f99e18ab9002092c99
1 file changed
+22
-1
conf.d/health.d/haproxy.conf
+22
-1
@@ -1,8 +1,29 @@
1
template: haproxy_backend_server_status
2
- on: haproxy_h.down
2
+ on: haproxy_hs.down
3
units: failed servers
4
every: 10s
5
lookup: average -10s
6
crit: $this > 0
7
info: Some of your backend servers is down!
8
to: sysadmin
9
+
10
+ template: haproxy_backend_status
11
+ on: haproxy_hb.down
12
+ units: failed backend
13
+ every: 10s
14
+ lookup: average -10s
15
+ crit: $this > 0
16
+ info: Some of your backends is down!
17
+ to: sysadmin
18
+
19
+template: haproxy_last_collected
20
+ on: haproxy_hb.down
21
+ calc: $now - $last_collected_t
22
+ units: seconds ago
23
+ every: 10s
24
+ warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
25
+ crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
26
+ info: number of seconds since the last successful data collection
27
+ to: sysadmin
28
+
29
+