master
conf 119 lines 3.85 KB
Raw
1 # you can disable an alarm notification by setting the 'to' line to: silent
2
3 template: apcupsd_ups_load_capacity
4 on: apcupsd.ups_load_capacity_utilization
5 class: Utilization
6 type: Power Supply
7 component: UPS device
8 lookup: average -10m unaligned of load
9 units: %
10 every: 1m
11 warn: $this > (($status >= $WARNING) ? (70) : (80))
12 delay: down 10m multiplier 1.5 max 1h
13 summary: APC UPS load
14 info: APC UPS average load over the last 10 minutes
15 to: sitemgr
16
17 template: apcupsd_ups_battery_charge
18 on: apcupsd.ups_battery_charge
19 class: Errors
20 type: Power Supply
21 component: UPS device
22 lookup: average -60s unaligned of charge
23 units: %
24 every: 60s
25 warn: $this < 100
26 crit: $this < 40
27 delay: down 10m multiplier 1.5 max 1h
28 summary: APC UPS battery charge
29 info: APC UPS average battery charge over the last minute
30 to: sitemgr
31
32 template: apcupsd_last_collected_secs
33 on: apcupsd.ups_status
34 class: Latency
35 type: Power Supply
36 component: UPS device
37 calc: $now - $last_collected_t
38 every: 10s
39 units: seconds ago
40 warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
41 delay: down 5m multiplier 1.5 max 1h
42 summary: APC UPS last collection
43 info: APC UPS number of seconds since the last successful data collection
44 to: sitemgr
45
46 #Send out a warning when SELFTEST code is BT or NG. Code descriptions can be found at:
47 #http://www.apcupsd.org/manual/#:~:text=or%20N/A.-,SELFTEST,-The%20results%20of
48 template: apcupsd_ups_selftest_warning
49 on: apcupsd.ups_selftest
50 lookup: max -1s unaligned match-names of BT,NG
51 units: status
52 every: 10s
53 warn: $this == 1
54 delay: up 0 down 15m multiplier 1.5 max 1h
55 info: APC UPS self-test failed due to insufficient battery capacity or due to overload
56 to: sitemgr
57
58 #Send out a warning when STATUS code is ONBATT,OVERLOAD,LOWBATT,REPLACEBATT,NOBATT,COMMLOST
59 #https://man.archlinux.org/man/apcaccess.8.en#:~:text=apcupsd%20was%20started-,STATUS,-%3A%20UPS%20status.%20One
60
61 template: apcupsd_ups_status_onbatt
62 on: apcupsd.ups_status
63 lookup: max -1s unaligned match-names of ONBATT
64 units: status
65 every: 10s
66 warn: $this == 1
67 delay: up 1m down 15m multiplier 1.5 max 1h
68 info: APC UPS has switched to battery power because the input power has failed
69 to: sitemgr
70
71 template: apcupsd_ups_status_overload
72 on: apcupsd.ups_status
73 lookup: max -1s unaligned match-names of OVERLOAD
74 units: status
75 every: 10s
76 warn: $this == 1
77 delay: up 0 down 15m multiplier 1.5 max 1h
78 info: APC UPS is overloaded and cannot supply enough power to the load
79 to: sitemgr
80
81 template: apcupsd_ups_status_lowbatt
82 on: apcupsd.ups_status
83 lookup: max -1s unaligned match-names of LOWBATT
84 units: status
85 every: 10s
86 warn: $this == 1
87 delay: up 0 down 15m multiplier 1.5 max 1h
88 info: APC UPS battery is low and needs to be recharged
89 to: sitemgr
90
91 template: apcupsd_ups_status_replacebatt
92 on: apcupsd.ups_status
93 lookup: max -1s unaligned match-names of REPLACEBATT
94 units: status
95 every: 10s
96 warn: $this == 1
97 delay: up 0 down 15m multiplier 1.5 max 1h
98 info: APC UPS battery has reached the end of its lifespan and needs to be replaced
99 to: sitemgr
100
101 template: apcupsd_ups_status_nobatt
102 on: apcupsd.ups_status
103 lookup: max -1s unaligned match-names of NOBATT
104 units: status
105 every: 10s
106 warn: $this == 1
107 delay: up 0 down 15m multiplier 1.5 max 1h
108 info: APC UPS has no battery
109 to: sitemgr
110
111 template: apcupsd_ups_status_commlost
112 on: apcupsd.ups_status
113 lookup: max -1s unaligned match-names of COMMLOST
114 units: status
115 every: 10s
116 warn: $this == 1
117 delay: up 0 down 15m multiplier 1.5 max 1h
118 info: APC UPS communication link is lost
119 to: sitemgr