From d56652156b4280061d75266aa42f2ad2757e77df Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Wed, 12 Jul 2023 07:46:20 +0200 Subject: [PATCH] Add monit check for osteoview-demo --- profiles/storage.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/profiles/storage.nix b/profiles/storage.nix index 22206cc..eb05ea9 100644 --- a/profiles/storage.nix +++ b/profiles/storage.nix @@ -72,6 +72,16 @@ with timeout 5 seconds content = '[{"]Healthy["]:[{}}]' then alert + + check host osteoview-demo with address demo.osteoview.app + if failed + port 443 + protocol https + status = 200 + request "/api/_health" + with timeout 5 seconds + content = '[{"]Healthy["]:[{}}]' + then alert ''; };