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.
This commit is contained in:
Christoffer Martinsson 2025-10-18 22:22:02 +02:00
parent 8cf8d37556
commit f0eec38655
2 changed files with 4 additions and 16 deletions

View File

@ -5,13 +5,15 @@
[[hosts.hosts]] [[hosts.hosts]]
name = "srv01" name = "srv01"
base_url = "http://srv01.local"
enabled = true enabled = true
# metadata = { rack = "R1" } # metadata = { rack = "R1" }
[[hosts.hosts]] [[hosts.hosts]]
name = "labbox" name = "labbox"
base_url = "http://labbox.local" enabled = true
[[hosts.hosts]]
name = "srv02"
enabled = true enabled = true
[dashboard] [dashboard]

View File

@ -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