summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com>2024-01-25 14:15:41 +0200
committerGitHub <noreply@github.com>2024-01-25 14:15:41 +0200
commit36d53335090a210471f4469ba4c9d1a13a175846 (patch)
treedfe2a27af5eee9829b8ac4c795af73ebef540a88
parenta8d67cf3279b349e775b33cee7dd1a69f91f982b (diff)
Include timer units failed state alert as default (#16845)
-rw-r--r--health/health.d/systemdunits.conf16
1 files changed, 16 insertions, 0 deletions
diff --git a/health/health.d/systemdunits.conf b/health/health.d/systemdunits.conf
index ad53a0e1c2..31ae68ff49 100644
--- a/health/health.d/systemdunits.conf
+++ b/health/health.d/systemdunits.conf
@@ -159,3 +159,19 @@ component: Systemd units
summary: systemd unit ${label:unit_name} state
info: systemd slice units in the failed state
to: sysadmin
+
+## Timer units
+ template: systemd_timer_unit_failed_state
+ on: systemd.timer_unit_state
+ class: Errors
+ type: Linux
+component: Systemd units
+ module: !* *
+ calc: $failed
+ units: state
+ every: 10s
+ warn: $this != nan AND $this == 1
+ delay: down 5m multiplier 1.5 max 1h
+ summary: systemd unit ${label:unit_name} state
+ info: systemd timer unit in the failed state
+ to: sysadmin