From 0fa93821680fdf1c25105afb60da8d2ec065c1be Mon Sep 17 00:00:00 2001 From: Tobias Wiese Date: Sat, 16 Jan 2021 17:19:37 +0100 Subject: service: monitor systemd system state Monitor whether there are systemd units in a failed state. Signed-off-by: Tobias Wiese --- zones.d/global-templates/services.conf | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'zones.d/global-templates/services.conf') diff --git a/zones.d/global-templates/services.conf b/zones.d/global-templates/services.conf index a540ff5..23c2a91 100644 --- a/zones.d/global-templates/services.conf +++ b/zones.d/global-templates/services.conf @@ -47,6 +47,14 @@ apply Service "swap" { assign where host.vars.kernel == "linux" } +apply Service "systemd" { + import "generic-service" + + check_command = "systemd" + + assign where host.vars.init == "systemd" +} + /* OS specific basic health checks */ apply Service "apt" { import "generic-service" -- cgit v1.2.3