From 303aacafdb293aaed7cfdb0e434f10d77bfb203a Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 4 Mar 2024 17:13:12 +0100 Subject: monit: extra catch-all check via systemctl is-system-running --- flora/services/monit.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flora/services/monit.nix b/flora/services/monit.nix index 28a0503..72d6837 100644 --- a/flora/services/monit.nix +++ b/flora/services/monit.nix @@ -53,6 +53,9 @@ if failed port 443 with protocol https then alert + check program system path ${pkgs.systemd}/bin/systemctl is-system-running + if status != 0 then alert + set mail-format { subject: $SERVICE: $EVENT message: Action: $ACTION $SERVICE: $DESCRIPTION. -- cgit v1.2.3