summaryrefslogtreecommitdiff
path: root/flora/services
diff options
context:
space:
mode:
authorstuebinm2024-03-07 16:30:05 +0100
committerstuebinm2024-03-07 16:30:05 +0100
commitbf66f77b5f92c57d1c592fa9ee2a4fceec636b7a (patch)
treedcc671f12528656ee7b9a1ea9ebbd2e47c5beec2 /flora/services
parentc11127995defe25c8b4164389750672a25e61fc0 (diff)
monit: add stuff for infra4future.de
Diffstat (limited to 'flora/services')
-rw-r--r--flora/services/monit.nix14
1 files changed, 13 insertions, 1 deletions
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.