From f8c4c5a7021cb92dea44422ce76b3f592fca6b36 Mon Sep 17 00:00:00 2001 From: Squibid Date: Mon, 1 Dec 2025 22:02:51 -0500 Subject: [PATCH 1/2] make gatus monitoring more frequent and store data --- hosts/blob/gatus.nix | 14 ++++++++++---- hosts/blob/jellyfin.nix | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/hosts/blob/gatus.nix b/hosts/blob/gatus.nix index fd459ce..6293a8b 100644 --- a/hosts/blob/gatus.nix +++ b/hosts/blob/gatus.nix @@ -10,33 +10,39 @@ in { openFirewall = true; settings = { web.port = 8081; + storage = { + path = "/var/lib/gatus/db.sqlite"; + type = "sqlite"; + caching = true; + }; + ui.dark-mode = true; endpoints = [ { name = "nas"; group = "external"; url = "http://192.168.50.240"; - interval = "5m"; + interval = "1m"; conditions = gatus.up; } { name = "site"; group = "remote"; url = "https://squi.bid"; - interval = "10m"; + interval = "2m"; conditions = gatus.up; } { name = "git site"; group = "remote"; url = "https://git.squi.bid"; - interval = "10m"; + interval = "2m"; conditions = gatus.up; } { name = "voidpkgs"; group = "remote"; url = "https://voidpkgs.squi.bid"; - interval = "10m"; + interval = "2m"; conditions = [''[BODY] == pat(*x86_64-repodata.sig2*)'']; } ]; diff --git a/hosts/blob/jellyfin.nix b/hosts/blob/jellyfin.nix index da82671..3584f0a 100644 --- a/hosts/blob/jellyfin.nix +++ b/hosts/blob/jellyfin.nix @@ -13,7 +13,7 @@ name = "jellyfin"; group = "local"; url = "http://localhost:8096/System/Ping"; - interval = "5m"; + interval = "30s"; conditions = [''[BODY] == "Jellyfin Server"'']; } ]; From fcbbf4b8e4750531ef9a268b4cb659168f645a3e Mon Sep 17 00:00:00 2001 From: Squibid Date: Mon, 1 Dec 2025 22:07:49 -0500 Subject: [PATCH 2/2] add blob to the deployments --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index e6906a9..b81b7a5 100644 --- a/flake.nix +++ b/flake.nix @@ -78,6 +78,7 @@ # and where they get deployed to deploy.nodes = mkNodes { crayon = { hostname = "squi.bid"; }; + blob = { hostname = "192.168.50.159"; }; }; # dev shell to deploy this flake