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: filter out qdevice from cluster node discovery
[email protected]c91add36d274
diff --git a/cmd/pulse-sensor-proxy/ssh.go b/cmd/pulse-sensor-proxy/ssh.goindex b027af9462..340e17a3d2 100644--- a/cmd/pulse-sensor-proxy/ssh.go+++ b/cmd/pulse-sensor-proxy/ssh.go@@ -740,6 +740,9 @@ func parseClusterNodes(output string) ([]string, error) {var nodes []stringlines := strings.Split(output, "\n")for _, line := range lines {+ if strings.Contains(strings.ToLower(line), "qdevice") {+ continue+ }fields := strings.Fields(line)// Need at least 2 fields to be a valid node line (id + ip/name)if len(fields) < 2 {diff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.shindex ffa34b47f2..ae17987f08 100755--- a/scripts/install-sensor-proxy.sh+++ b/scripts/install-sensor-proxy.sh@@ -805,7 +805,7 @@ cleanup_cluster_authorized_keys_manual() {if command -v pvecm >/dev/null 2>&1; thenwhile IFS= read -r node_ip; do[[ -n "$node_ip" ]] && nodes+=("$node_ip")- done < <(pvecm status 2>/dev/null | awk '/0x[0-9a-f]+.*[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {for(i=1;i<=NF;i++) if($i ~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/) print $i}' || true)+ done < <(pvecm status 2>/dev/null | grep -vEi "qdevice" | awk '/0x[0-9a-f]+.*[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {for(i=1;i<=NF;i++) if($i ~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/) print $i}' || true)fiif [[ ${#nodes[@]} -eq 0 ]]; then@@ -2646,7 +2646,7 @@ if [[ -z "$HOST" ]]; then# Discover cluster nodesif command -v pvecm >/dev/null 2>&1; then- CLUSTER_NODES=$(pvecm status 2>/dev/null | awk '/0x[0-9a-f]+.*[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {for(i=1;i<=NF;i++) if($i ~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/) print $i}' || true)+ CLUSTER_NODES=$(pvecm status 2>/dev/null | grep -vEi "qdevice" | awk '/0x[0-9a-f]+.*[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {for(i=1;i<=NF;i++) if($i ~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/) print $i}' || true)if [[ -n "$CLUSTER_NODES" ]]; thenfor node_ip in $CLUSTER_NODES; do@@ -2955,7 +2955,7 @@ print_info "Proxy public key: ${PROXY_PUBLIC_KEY:0:50}..."# Discover cluster nodesif command -v pvecm >/dev/null 2>&1; then# Extract node IPs from pvecm status- CLUSTER_NODES=$(pvecm status 2>/dev/null | awk '/0x[0-9a-f]+.*[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {for(i=1;i<=NF;i++) if($i ~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/) print $i}' || true)+ CLUSTER_NODES=$(pvecm status 2>/dev/null | grep -vEi "qdevice" | awk '/0x[0-9a-f]+.*[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {for(i=1;i<=NF;i++) if($i ~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/) print $i}' || true)if [[ -n "$CLUSTER_NODES" ]]; thenprint_info "Discovered cluster nodes: $(echo $CLUSTER_NODES | tr '\n' ' ')"diff --git a/scripts/pulse-sensor-cleanup.sh b/scripts/pulse-sensor-cleanup.shindex 1947b29c3f..c6d831a1fb 100755--- a/scripts/pulse-sensor-cleanup.sh+++ b/scripts/pulse-sensor-cleanup.sh@@ -64,7 +64,7 @@ if [[ -z "$HOST" ]]; then# Discover cluster nodesif command -v pvecm >/dev/null 2>&1; then- CLUSTER_NODES=$(pvecm status 2>/dev/null | awk '/0x[0-9a-f]+.*[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {for(i=1;i<=NF;i++) if($i ~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/) print $i}' || true)+ CLUSTER_NODES=$(pvecm status 2>/dev/null | grep -vEi "qdevice" | awk '/0x[0-9a-f]+.*[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {for(i=1;i<=NF;i++) if($i ~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/) print $i}' || true)if [[ -n "$CLUSTER_NODES" ]]; thenfor node_ip in $CLUSTER_NODES; do