diff options
| author | Tobias Wiese <tobias@tobiaswiese.com> | 2021-01-16 17:19:37 +0100 |
|---|---|---|
| committer | Tobias Wiese <tobias@tobiaswiese.com> | 2021-01-16 17:19:37 +0100 |
| commit | 0fa93821680fdf1c25105afb60da8d2ec065c1be (patch) | |
| tree | 1245d79408de6d0e1837d940c1bdd177322f02c2 /zones.d/global-templates | |
| parent | 4d82e683e03f32f0bb762c246d82e38728f1c2a2 (diff) | |
service: monitor systemd system state
Monitor whether there are systemd units in a failed state.
Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
Diffstat (limited to 'zones.d/global-templates')
| -rw-r--r-- | zones.d/global-templates/commands.conf | 3 | ||||
| -rw-r--r-- | zones.d/global-templates/services.conf | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/zones.d/global-templates/commands.conf b/zones.d/global-templates/commands.conf new file mode 100644 index 0000000..1fe8b56 --- /dev/null +++ b/zones.d/global-templates/commands.conf @@ -0,0 +1,3 @@ +object CheckCommand "systemd" { + command = [ PluginDir + "/check_systemd" ] +} 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" |
