summaryrefslogtreecommitdiff
path: root/flora
diff options
context:
space:
mode:
authorstuebinm2024-03-04 17:13:12 +0100
committerstuebinm2024-03-04 17:13:12 +0100
commit303aacafdb293aaed7cfdb0e434f10d77bfb203a (patch)
tree503090decd39effb54a44c85ac6799f4a1085871 /flora
parent69b11e5ca67eefd056e534d112f89a4271d845e5 (diff)
monit: extra catch-all check via systemctl is-system-running
Diffstat (limited to 'flora')
-rw-r--r--flora/services/monit.nix3
1 files changed, 3 insertions, 0 deletions
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.