fix(agent-health-check): correct unit names, abiba key path, pid crash, uptime math (script-only) #65

Merged
abiba-bot merged 4 commits from fm/agent-health-probe-repoint-20260907 into master 2026-09-09 01:39:30 +00:00
Showing only changes of commit af3d364242 - Show all commits
+2 -2
View File
@@ -311,9 +311,9 @@ def check_agents():
# the report-only path — leaving it unbound on the abiba/koonimo path
# raised UnboundLocalError and crashed the whole check. Agents without
# a gateway get pid=?.
pid = ssh(host, "pgrep -f 'hermes_cli.main gateway run' | grep -v infisical | head -1", user=user)
pid = ssh(host, "pgrep -f '[h]ermes_cli.main gateway run' | grep -v infisical | head -1", user=user)
if not pid:
pid = ssh(host, "pgrep -f 'hermes.*gateway' | grep -v infisical | grep -v bash | head -1", user=user)
pid = ssh(host, "pgrep -f '[h]ermes.*gateway' | grep -v infisical | grep -v bash | head -1", user=user)
if not pid:
pid = "?"