Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Fix pulse-host-agent temperature collection on all Linux distros (related to #661)

rcourtman1a3abf7f3f1a
diff --git a/docs/HOST_AGENT.md b/docs/HOST_AGENT.md
index 907e3bb536..5e354ef01a 100644
--- a/docs/HOST_AGENT.md
+++ b/docs/HOST_AGENT.md
@@ -17,7 +17,7 @@ The host agent automatically collects temperature data on Linux systems with lm-
- **NVMe Drive Temperatures**: SSD thermal data
- **GPU Temperatures**: AMD and NVIDIA GPU sensors
-Temperature data appears in the **Servers** tab alongside other host metrics. This is particularly useful for monitoring Proxmox hosts when running Pulse in a VM (where the sensor proxy socket cannot cross VM boundaries).
+Temperature data appears in the **Hosts** tab alongside other host metrics. This is particularly useful for monitoring Proxmox hosts when running Pulse in a VM (where the sensor proxy socket cannot cross VM boundaries).
**Requirements:**
- Linux operating system
diff --git a/docs/TEMPERATURE_MONITORING.md b/docs/TEMPERATURE_MONITORING.md
index 4f20448a55..a1be11c5f1 100644
--- a/docs/TEMPERATURE_MONITORING.md
+++ b/docs/TEMPERATURE_MONITORING.md
@@ -43,7 +43,7 @@ pulse-host-agent runs natively on your Proxmox host and reports temperatures bac
bash -s -- --url http://your-pulse-vm:7655 --token YOUR_API_TOKEN
```
-3. Verify temperatures appear in Pulse UI under the Servers tab
+3. Verify temperatures appear in Pulse UI under the Hosts tab
The host agent will report CPU, NVMe, and GPU temperatures alongside other system metrics. No proxy installation or socket mounting needed.
diff --git a/internal/hostagent/agent.go b/internal/hostagent/agent.go
index a4bfe9654d..6f9c14f38c 100644
--- a/internal/hostagent/agent.go
+++ b/internal/hostagent/agent.go
@@ -313,7 +313,7 @@ func isLoopback(flags []string) bool {
// Returns an empty Sensors struct if collection fails (best-effort).
func (a *Agent) collectTemperatures(ctx context.Context) agentshost.Sensors {
// Only collect on Linux for now (lm-sensors is Linux-specific)
- if a.platform != "linux" {
+ if runtime.GOOS != "linux" {
return agentshost.Sensors{}
}