From f0eec38655cf8c14c3152576cc1029fb82861fc7 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sat, 18 Oct 2025 22:22:02 +0200 Subject: [PATCH] Fix SMART data collection and clean up configuration - Restore sudo smartctl commands for proper SMART data collection - Add srv02 to host configuration for dashboard discovery - Remove redundant hosts.toml file, consolidate into dashboard.toml - Clean up base_url fields that were unused in ZMQ architecture The SMART data collection now works properly with systemd service by using sudo permissions configured in NixOS. Dashboard can now discover and connect to srv02 alongside existing hosts. --- config/dashboard.toml | 6 ++++-- config/hosts.toml | 14 -------------- 2 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 config/hosts.toml diff --git a/config/dashboard.toml b/config/dashboard.toml index 53272da..ade331c 100644 --- a/config/dashboard.toml +++ b/config/dashboard.toml @@ -5,13 +5,15 @@ [[hosts.hosts]] name = "srv01" -base_url = "http://srv01.local" enabled = true # metadata = { rack = "R1" } [[hosts.hosts]] name = "labbox" -base_url = "http://labbox.local" +enabled = true + +[[hosts.hosts]] +name = "srv02" enabled = true [dashboard] diff --git a/config/hosts.toml b/config/hosts.toml deleted file mode 100644 index dd5c7d2..0000000 --- a/config/hosts.toml +++ /dev/null @@ -1,14 +0,0 @@ -# Optional separate hosts configuration - -[hosts] -# default_host = "srv01" - -[[hosts.hosts]] -name = "srv01" -base_url = "http://srv01.local" -enabled = true - -[[hosts.hosts]] -name = "labbox" -base_url = "http://labbox.local" -enabled = true