master
conf 46 lines 1.52 KB
Raw
1 # you can disable an alarm notification by setting the 'to' line to: silent
2
3 template: upsd_10min_ups_load
4 on: upsd.ups_load
5 class: Utilization
6 type: Power Supply
7 component: UPS
8 lookup: average -10m unaligned of load
9 units: %
10 every: 1m
11 warn: $this > (($status >= $WARNING) ? (70) : (80))
12 crit: $this > (($status == $CRITICAL) ? (85) : (95))
13 delay: down 10m multiplier 1.5 max 1h
14 summary: UPS ${label:ups_name} load
15 info: UPS ${label:ups_name} average load over the last 10 minutes
16 to: sitemgr
17
18 template: upsd_ups_battery_charge
19 on: upsd.ups_battery_charge
20 class: Errors
21 type: Power Supply
22 component: UPS
23 lookup: average -60s unaligned of charge
24 units: %
25 every: 60s
26 warn: $this < 75
27 crit: $this < 40
28 delay: down 10m multiplier 1.5 max 1h
29 summary: UPS ${label:ups_name} battery charge
30 info: UPS ${label:ups_name} average battery charge over the last minute
31 to: sitemgr
32
33 template: upsd_ups_last_collected_secs
34 on: upsd.ups_load
35 class: Latency
36 type: Power Supply
37 component: UPS device
38 calc: $now - $last_collected_t
39 every: 10s
40 units: seconds ago
41 warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
42 crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
43 delay: down 5m multiplier 1.5 max 1h
44 summary: UPS ${label:ups_name} last collected
45 info: UPS ${label:ups_name} number of seconds since the last successful data collection
46 to: sitemgr