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 pulse-sensor-proxy pvecm errors in LXC containers (related to #600)
rcourtman27c2774af452
diff --git a/cmd/pulse-sensor-proxy/ssh.go b/cmd/pulse-sensor-proxy/ssh.goindex 4a4a10be9d..278826f7d9 100644--- a/cmd/pulse-sensor-proxy/ssh.go+++ b/cmd/pulse-sensor-proxy/ssh.go@@ -572,13 +572,17 @@ func discoverClusterNodes() ([]string, error) {err := cmd.Run()// pvecm status exits with code 2 on standalone nodes (not in a cluster)- // Treat this as a valid case and discover local host addresses+ // 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()- // Check if this is the "not part of a cluster" error+ // 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 accessif strings.Contains(stderrStr, "does not exist") ||- strings.Contains(stderrStr, "not part of a cluster") {- log.Info().Msg("Standalone Proxmox node detected (not in cluster) - discovering local host addresses")+ strings.Contains(stderrStr, "not part of a cluster") ||+ strings.Contains(stderrStr, "ipcc_send_rec") {+ log.Info().Msg("Standalone Proxmox node or LXC container detected - discovering local host addresses")return discoverLocalHostAddresses()}// For other errors, fail