@cryptotaxi247 / netdata-1 / commits / 75eb43910

Add basic apcupsd alarm templates

Chris committed Jul 3, 2018 at 21:01 UTC 75eb439103e93f567ac47f5ee63f5c8586ba09b4
2 files changed +39
conf.d/Makefile.am
+1
@@ -88,6 +88,7 @@ healthconfigdir=$(configdir)/health.d
88
89 dist_healthconfig_DATA = \
90 health.d/apache.conf \
91 + health.d/apcupsd.conf \
92 health.d/backend.conf \
93 health.d/bcache.conf \
94 health.d/beanstalkd.conf \
conf.d/health.d/apcupsd.conf new
+38
@@ -0,0 +1,38 @@
1 +# you can disable an alarm notification by setting the 'to' line to: silent
2 +
3 +template: 10min_ups_load
4 + on: apcupsd.load
5 + os: *
6 + hosts: *
7 + lookup: average -10m unaligned of percentage
8 + units: %
9 + every: 1m
10 + warn: $this > (($status >= $WARNING) ? (70) : (80))
11 + crit: $this > (($status == $CRITICAL) ? (85) : (95))
12 + delay: down 10m multiplier 1.5 max 1h
13 + info: average UPS load for the last 10 minutes
14 + to: sitemgr
15 +
16 +template: ups_charge
17 + on: apcupsd.charge
18 + os: *
19 + hosts: *
20 + lookup: average -60s unaligned of charge
21 + units: %
22 + every: 60s
23 + warn: $this < (($status >= $WARNING) ? (90) : (95))
24 + crit: $this < (($status == $CRITICAL) ? (20) : (15))
25 + delay: down 10m multiplier 1.5 max 1h
26 + info: current UPS charge, averaged over the last 60 seconds to reduce measurement errors
27 + to: sitemgr
28 +
29 +template: apcupsd_last_collected_secs
30 + on: apcupsd.load
31 + calc: $now - $last_collected_t
32 + every: 10s
33 + units: seconds ago
34 + warn: $this > (($status >= $WARNING) ? ($update_every) : ( 2 * $update_every))
35 + crit: $this > (($status == $CRITICAL) ? ($update_every) : (10 * $update_every))
36 + delay: down 5m multiplier 1.5 max 1h
37 + info: number of seconds since the last successful data collection
38 + to: sitemgr