fire alarm if under 100% charge + docs
Chris committed
Jul 5, 2018 at 07:48 UTC
454d5182ae6fe804cd2e5ee583f82edc1c08a9d4
1 file changed
+3
-1
conf.d/health.d/apcupsd.conf
+3
-1
@@ -13,6 +13,8 @@ template: 10min_ups_load
13
info: average UPS load for the last 10 minutes
14
to: sitemgr
15
16
+# Discussion in https://github.com/firehol/netdata/pull/3928:
17
+# Fire the alarm as soon as it's going on battery (99% charge) and clear only when full.
18
template: ups_charge
19
on: apcupsd.charge
20
os: *
@@ -20,7 +22,7 @@ template: ups_charge
22
lookup: average -60s unaligned of charge
23
units: %
24
every: 60s
23
- warn: $this < (($status >= $WARNING) ? (90) : (98))
25
+ warn: $this < 100
26
crit: $this < (($status == $CRITICAL) ? (60) : (50))
27
delay: down 10m multiplier 1.5 max 1h
28
info: current UPS charge, averaged over the last 60 seconds to reduce measurement errors