From a292411d52f9c1a20b3df4e097063ee25500f721 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Thu, 2 Jul 2026 20:28:42 -0500 Subject: [PATCH] Stop hardcoding a generic watch_services list on every agent install The installer wrote the same service list (ollama, homeassistant, mysql, mariadb, nginx, apache2, docker) onto every host regardless of what it actually runs, causing false "Service Down" alerts on hosts that never installed those services. Default is now empty; watch_services should be set per-host to match what's actually running there. --- agent/jarvis-agent.py | 2 +- public_html/agent/install.sh | 2 +- public_html/agent/jarvis-agent.py | 2 +- public_html/install-agent.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/jarvis-agent.py b/agent/jarvis-agent.py index 1dc721a..d237438 100755 --- a/agent/jarvis-agent.py +++ b/agent/jarvis-agent.py @@ -281,7 +281,7 @@ def get_uptime() -> dict: return {} def get_services(cfg: dict) -> list: - watch = cfg.get("watch_services", ["ollama", "homeassistant", "mysql", "nginx", "apache2"]) + watch = cfg.get("watch_services", []) statuses = [] for svc in watch: try: diff --git a/public_html/agent/install.sh b/public_html/agent/install.sh index a23c469..5d6c268 100644 --- a/public_html/agent/install.sh +++ b/public_html/agent/install.sh @@ -57,7 +57,7 @@ else "poll_interval": 30, "heartbeat_every": 10, "update_check_hours": 24, - "watch_services": ["ollama", "homeassistant", "mysql", "mariadb", "nginx", "apache2", "docker"] + "watch_services": [] } JSONEOF chmod 600 "$CONFIG_DIR/config.json" diff --git a/public_html/agent/jarvis-agent.py b/public_html/agent/jarvis-agent.py index 1dc721a..d237438 100644 --- a/public_html/agent/jarvis-agent.py +++ b/public_html/agent/jarvis-agent.py @@ -281,7 +281,7 @@ def get_uptime() -> dict: return {} def get_services(cfg: dict) -> list: - watch = cfg.get("watch_services", ["ollama", "homeassistant", "mysql", "nginx", "apache2"]) + watch = cfg.get("watch_services", []) statuses = [] for svc in watch: try: diff --git a/public_html/install-agent.sh b/public_html/install-agent.sh index aa185bc..ff7374e 100755 --- a/public_html/install-agent.sh +++ b/public_html/install-agent.sh @@ -57,7 +57,7 @@ else "poll_interval": 30, "heartbeat_every": 10, "update_check_hours": 24, - "watch_services": ["ollama", "homeassistant", "mysql", "mariadb", "nginx", "apache2", "docker"] + "watch_services": [] } JSONEOF chmod 600 "$CONFIG_DIR/config.json"