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 auto-registration token parsing and hostname
rcourtman50f8b7692171
diff --git a/install.sh b/install.shindex e73bb5a8e6..8d1f2bd70c 100755--- a/install.sh+++ b/install.sh@@ -1981,7 +1981,7 @@ PYfilocal token_value- token_value=$(echo "$token_output" | grep -E "│[[:space:]]*value" | awk -F'│' '{print $3}' | tr -d '[:space:]' | tail -n1)+ token_value=$(awk -F'│' '/[[:space:]]value[[:space:]]/{col=$3; gsub(/^[[:space:]]+|[[:space:]]+$/, "", col); print col}' <<<"$token_output" | tail -n1 | tr -d '\r')if [[ -z "$token_value" ]]; thenAUTO_NODE_REGISTER_ERROR="token value unavailable"print_warn "Failed to extract token value from pveum output; skipping automatic node registration"diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.goindex da460e7321..bc29d18d94 100644--- a/internal/api/config_handlers.go+++ b/internal/api/config_handlers.go@@ -3879,8 +3879,8 @@ else# Only proceed with auto-registration if we have an auth tokenif [ -n "$AUTH_TOKEN" ]; then- # Get the server's hostname- SERVER_HOSTNAME=$(hostname -f 2>/dev/null || hostname)+ # Get the server's hostname (short form to match Pulse node names)+ SERVER_HOSTNAME=$(hostname -s 2>/dev/null || hostname)SERVER_IP=$(hostname -I | awk '{print $1}')# Send registration to Pulse@@ -5080,8 +5080,8 @@ else# Only proceed with auto-registration if we have an auth tokenif [ -n "$AUTH_TOKEN" ]; then- # Get the server's hostname- SERVER_HOSTNAME=$(hostname -f 2>/dev/null || hostname)+ # Get the server's hostname (short form to match Pulse node names)+ SERVER_HOSTNAME=$(hostname -s 2>/dev/null || hostname)SERVER_IP=$(hostname -I | awk '{print $1}')# Send registration to Pulse