summaryrefslogtreecommitdiffstats
path: root/src/health/health.d/apcupsd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'src/health/health.d/apcupsd.conf')
-rw-r--r--src/health/health.d/apcupsd.conf48
1 files changed, 23 insertions, 25 deletions
diff --git a/src/health/health.d/apcupsd.conf b/src/health/health.d/apcupsd.conf
index 5fd7aa112..58d3b214b 100644
--- a/src/health/health.d/apcupsd.conf
+++ b/src/health/health.d/apcupsd.conf
@@ -1,11 +1,11 @@
# you can disable an alarm notification by setting the 'to' line to: silent
- template: apcupsd_10min_ups_load
- on: apcupsd.load
+ template: apcupsd_ups_load_capacity
+ on: apcupsd.ups_load_capacity_utilization
class: Utilization
type: Power Supply
-component: UPS
- lookup: average -10m unaligned of percentage
+component: UPS device
+ lookup: average -10m unaligned of load
units: %
every: 1m
warn: $this > (($status >= $WARNING) ? (70) : (80))
@@ -14,13 +14,11 @@ component: UPS
info: APC UPS average load over the last 10 minutes
to: sitemgr
-# Discussion in https://github.com/netdata/netdata/pull/3928:
-# Fire the alarm as soon as it's going on battery (99% charge) and clear only when full.
- template: apcupsd_ups_charge
- on: apcupsd.charge
+ template: apcupsd_ups_battery_charge
+ on: apcupsd.ups_battery_charge
class: Errors
type: Power Supply
-component: UPS
+component: UPS device
lookup: average -60s unaligned of charge
units: %
every: 60s
@@ -32,7 +30,7 @@ component: UPS
to: sitemgr
template: apcupsd_last_collected_secs
- on: apcupsd.load
+ on: apcupsd.ups_status
class: Latency
type: Power Supply
component: UPS device
@@ -47,21 +45,21 @@ component: UPS device
#Send out a warning when SELFTEST code is BT or NG. Code descriptions can be found at:
#http://www.apcupsd.org/manual/#:~:text=or%20N/A.-,SELFTEST,-The%20results%20of
- template: apcupsd_selftest_warning
- on: apcupsd.selftest
+ template: apcupsd_ups_selftest_warning
+ on: apcupsd.ups_selftest
lookup: max -1s unaligned match-names of BT,NG
units: status
every: 10s
warn: $this == 1
delay: up 0 down 15m multiplier 1.5 max 1h
- info: APC UPS self-test failed due to insufficient battery capacity or due to overload.
+ info: APC UPS self-test failed due to insufficient battery capacity or due to overload
to: sitemgr
#Send out a warning when STATUS code is ONBATT,OVERLOAD,LOWBATT,REPLACEBATT,NOBATT,COMMLOST
#https://man.archlinux.org/man/apcaccess.8.en#:~:text=apcupsd%20was%20started-,STATUS,-%3A%20UPS%20status.%20One
- template: apcupsd_status_onbatt
- on: apcupsd.status
+ template: apcupsd_ups_status_onbatt
+ on: apcupsd.ups_status
lookup: max -1s unaligned match-names of ONBATT
units: status
every: 10s
@@ -70,8 +68,8 @@ component: UPS device
info: APC UPS has switched to battery power because the input power has failed
to: sitemgr
- template: apcupsd_status_overload
- on: apcupsd.status
+ template: apcupsd_ups_status_overload
+ on: apcupsd.ups_status
lookup: max -1s unaligned match-names of OVERLOAD
units: status
every: 10s
@@ -80,8 +78,8 @@ component: UPS device
info: APC UPS is overloaded and cannot supply enough power to the load
to: sitemgr
- template: apcupsd_status_lowbatt
- on: apcupsd.status
+ template: apcupsd_ups_status_lowbatt
+ on: apcupsd.ups_status
lookup: max -1s unaligned match-names of LOWBATT
units: status
every: 10s
@@ -90,8 +88,8 @@ component: UPS device
info: APC UPS battery is low and needs to be recharged
to: sitemgr
- template: apcupsd_status_replacebatt
- on: apcupsd.status
+ template: apcupsd_ups_status_replacebatt
+ on: apcupsd.ups_status
lookup: max -1s unaligned match-names of REPLACEBATT
units: status
every: 10s
@@ -100,8 +98,8 @@ component: UPS device
info: APC UPS battery has reached the end of its lifespan and needs to be replaced
to: sitemgr
- template: apcupsd_status_nobatt
- on: apcupsd.status
+ template: apcupsd_ups_status_nobatt
+ on: apcupsd.ups_status
lookup: max -1s unaligned match-names of NOBATT
units: status
every: 10s
@@ -110,8 +108,8 @@ component: UPS device
info: APC UPS has no battery
to: sitemgr
- template: apcupsd_status_commlost
- on: apcupsd.status
+ template: apcupsd_ups_status_commlost
+ on: apcupsd.ups_status
lookup: max -1s unaligned match-names of COMMLOST
units: status
every: 10s