| 1 | template: haproxy_backend_server_status |
| 2 | on: haproxy_hs.down |
| 3 | class: Errors |
| 4 | type: Web Proxy |
| 5 | component: HAProxy |
| 6 | units: failed servers |
| 7 | every: 10s |
| 8 | lookup: average -10s |
| 9 | crit: $this > 0 |
| 10 | summary: HAProxy server status |
| 11 | info: Average number of failed haproxy backend servers over the last 10 seconds |
| 12 | to: sysadmin |
| 13 | |
| 14 | template: haproxy_backend_status |
| 15 | on: haproxy_hb.down |
| 16 | class: Errors |
| 17 | type: Web Proxy |
| 18 | component: HAProxy |
| 19 | units: failed backend |
| 20 | every: 10s |
| 21 | lookup: average -10s |
| 22 | crit: $this > 0 |
| 23 | summary: HAProxy backend status |
| 24 | info: Average number of failed haproxy backends over the last 10 seconds |
| 25 | to: sysadmin |