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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Fix temperature monitoring on standalone Proxmox nodes (addresses #571)
rcourtmanb7cfafe2cf2b
diff --git a/cmd/pulse-sensor-proxy/ssh.go b/cmd/pulse-sensor-proxy/ssh.goindex 278826f7d9..8134bde892 100644--- a/cmd/pulse-sensor-proxy/ssh.go+++ b/cmd/pulse-sensor-proxy/ssh.go@@ -571,23 +571,27 @@ func discoverClusterNodes() ([]string, error) {cmd.Stderr = &stderrerr := cmd.Run()- // pvecm status exits with code 2 on standalone nodes (not in a cluster)+ // pvecm status exits with code 2 or 255 on standalone nodes (not in a cluster)// Also handle LXC containers where pvecm can't access corosync IPC// Treat these as valid cases and discover local host addressesif err != nil {stderrStr := stderr.String()+ stdoutStr := out.String()+ combinedOutput := stderrStr + stdoutStr+// Check if this is a standalone node or LXC container// - "does not exist" or "not part of a cluster": standalone node// - "ipcc_send_rec": running in LXC container without corosync access- if strings.Contains(stderrStr, "does not exist") ||- strings.Contains(stderrStr, "not part of a cluster") ||- strings.Contains(stderrStr, "ipcc_send_rec") {+ // Note: Some Proxmox versions write these messages to stdout, others to stderr+ if strings.Contains(combinedOutput, "does not exist") ||+ strings.Contains(combinedOutput, "not part of a cluster") ||+ strings.Contains(combinedOutput, "ipcc_send_rec") {log.Info().Msg("Standalone Proxmox node or LXC container detected - discovering local host addresses")return discoverLocalHostAddresses()}// For other errors, fail- log.Warn().Str("stderr", stderrStr).Msg("pvecm status failed")- return nil, fmt.Errorf("failed to get cluster status: %w (stderr: %s)", err, stderrStr)+ log.Warn().Str("stderr", stderrStr).Str("stdout", stdoutStr).Msg("pvecm status failed")+ return nil, fmt.Errorf("failed to get cluster status: %w (stderr: %s, stdout: %s)", err, stderrStr, stdoutStr)}// Parse output to extract IP addresses