From bf66f77b5f92c57d1c592fa9ee2a4fceec636b7a Mon Sep 17 00:00:00 2001 From: stuebinm Date: Thu, 7 Mar 2024 16:30:05 +0100 Subject: monit: add stuff for infra4future.de --- flora/services/monit.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'flora') diff --git a/flora/services/monit.nix b/flora/services/monit.nix index 72d6837..e9544e1 100644 --- a/flora/services/monit.nix +++ b/flora/services/monit.nix @@ -53,9 +53,21 @@ if failed port 443 with protocol https then alert - check program system path ${pkgs.systemd}/bin/systemctl is-system-running + check program is-system-running path ${pkgs.systemd}/bin/systemctl is-system-running if status != 0 then alert + check host hacc-uffd with address login.infra4future.de + if failed port 443 with protocol https + then alert + + check host hacc-onlyoffice with address onlyoffice.infra4future.de + if failed port 443 with protocol https and status 302 + then alert + + check host hacc-mattermost with address mattermost.infra4future.de + if failed port 443 with protocol https + then alert + set mail-format { subject: $SERVICE: $EVENT message: Action: $ACTION $SERVICE: $DESCRIPTION. -- cgit v1.2.3