machines/sirius: add monitoring system

This commit is contained in:
2026-04-11 15:19:03 +07:00
parent f5930ae9e6
commit 79eeb2a491

View File

@@ -1,5 +1,6 @@
{
self,
pkgs,
...
}:
{
@@ -70,4 +71,22 @@
];
};
systemd.services.heartbeat-push = {
description = "Heartbeat push to uptime monitor";
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.curl}/bin/curl -s -o /dev/null https://uptime.b4l.co.th/api/push/X0WCHAcY5gPf1U8If7BT1FLjpacZqGZu?status=up&msg=OK&ping=";
};
};
systemd.timers.heartbeat-push = {
description = "Heartbeat push timer";
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "60s";
OnUnitActiveSec = "60s";
Unit = "heartbeat-push.service";
};
};
}