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
polish: Clean up setup script output for professional presentation
rcourtman6c7314b86bf7
diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.goindex 0bcb2b5b85..f575f425e6 100644--- a/internal/api/config_handlers.go+++ b/internal/api/config_handlers.go@@ -3579,15 +3579,15 @@ if command -v pct >/dev/null 2>&1 && [ "$TEMPERATURE_ENABLED" = true ]; thenif [ -n "$PULSE_CTID" ]; thenecho ""echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"- echo "📦 Container Detection"+ echo "🔒 Enhanced Security"echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"echo ""- echo "Detected Pulse running in LXC container $PULSE_CTID"+ echo "Detected: Pulse running in container $PULSE_CTID"echo ""- echo "For enhanced security, install pulse-sensor-proxy on this host."- echo "This keeps SSH keys outside the container for better isolation."+ echo "Recommended: Install secure proxy for temperature monitoring"+ echo "This keeps credentials isolated outside the container."echo ""- echo "Install pulse-sensor-proxy for container $PULSE_CTID? [Y/n]"+ echo "Enable secure proxy? [Y/n]"echo -n "> "INSTALL_PROXY="y"@@ -3605,21 +3605,14 @@ if command -v pct >/dev/null 2>&1 && [ "$TEMPERATURE_ENABLED" = true ]; thenecho ""if [[ $INSTALL_PROXY =~ ^[Yy]$|^$ ]]; then- echo "Installing pulse-sensor-proxy..."-# Download installer scriptPROXY_INSTALLER="/tmp/install-sensor-proxy-$$.sh"if curl -fsSL "https://github.com/rcourtman/Pulse/releases/latest/download/install-sensor-proxy.sh" -o "$PROXY_INSTALLER" 2>/dev/null; thenchmod +x "$PROXY_INSTALLER"- # Run installer- if "$PROXY_INSTALLER" --ctid "$PULSE_CTID" 2>&1; then- echo ""- echo "✓ pulse-sensor-proxy installed successfully"- echo ""-- # Clean up old container-based SSH keys from nodes- echo "Cleaning up legacy SSH keys from cluster nodes..."+ # Run installer (suppress verbose output)+ if "$PROXY_INSTALLER" --ctid "$PULSE_CTID" --quiet 2>&1 | grep -E "✓|⚠️|ERROR" || "$PROXY_INSTALLER" --ctid "$PULSE_CTID" 2>&1 | grep -E "✓|⚠️|ERROR"; then+ # Clean up old container-based SSH keys from nodes (silent)CLEANUP_NODES=""if [ "$TEMPERATURE_ENABLED" = true ]; thenCLEANUP_NODES="$(hostname)"@@ -3630,41 +3623,29 @@ if command -v pct >/dev/null 2>&1 && [ "$TEMPERATURE_ENABLED" = true ]; thenfor NODE in $CLEANUP_NODES; doif [ -n "$NODE" ] && [ -n "$SSH_PUBLIC_KEY" ]; then- # Remove the old pulse@ keys (but not pulse-sensor-proxy keys)ssh -o BatchMode=yes -o StrictHostKeyChecking=no -o ConnectTimeout=5 -o LogLevel=ERROR \root@"$NODE" \"sed -i '/$SSH_PUBLIC_KEY/d' /root/.ssh/authorized_keys 2>/dev/null || true" \- >/dev/null 2>&1 && echo " ✓ Cleaned up legacy key on $NODE" || true+ >/dev/null 2>&1fidoneecho ""- echo "Temperature monitoring will now use the secure proxy architecture."- echo "SSH keys are stored on the host, not inside the container."+ echo "✓ Secure proxy architecture enabled"+ echo " SSH keys are managed on the host for enhanced security"elseecho ""- echo "⚠️ Proxy installation failed. Temperature monitoring will use direct SSH."- echo ""- echo "To install manually later:"- echo " curl -fsSL https://github.com/rcourtman/Pulse/releases/latest/download/install-sensor-proxy.sh | bash -s -- --ctid $PULSE_CTID"+ echo "⚠️ Installation incomplete - using standard configuration"fi- # Cleanuprm -f "$PROXY_INSTALLER"elseecho ""- echo "⚠️ Could not download proxy installer. Temperature monitoring will use direct SSH."- echo ""- echo "To install manually later:"- echo " curl -fsSL https://github.com/rcourtman/Pulse/releases/latest/download/install-sensor-proxy.sh | bash -s -- --ctid $PULSE_CTID"+ echo "⚠️ Network issue - using standard configuration"+ echo " (Proxy can be installed later for enhanced security)"fielse- echo "Proxy installation skipped."- echo ""- echo "Temperature monitoring will use direct SSH (keys stored in container)."- echo ""- echo "To install proxy later for enhanced security:"- echo " curl -fsSL https://github.com/rcourtman/Pulse/releases/latest/download/install-sensor-proxy.sh | bash -s -- --ctid $PULSE_CTID"+ echo "Using standard configuration"fififidiff --git a/scripts/install-sensor-proxy.sh b/scripts/install-sensor-proxy.shindex 9f83015b2b..2ed2b32cd3 100755--- a/scripts/install-sensor-proxy.sh+++ b/scripts/install-sensor-proxy.sh@@ -12,7 +12,9 @@ YELLOW='\033[1;33m'NC='\033[0m' # No Colorprint_info() {- echo -e "${GREEN}[INFO]${NC} $1"+ if [ "$QUIET" != true ]; then+ echo -e "${GREEN}[INFO]${NC} $1"+ fi}print_warn() {@@ -23,6 +25,10 @@ print_error() {echo -e "${RED}[ERROR]${NC} $1"}+print_success() {+ echo -e "${GREEN}✓${NC} $1"+}+# Check if running on Proxmox hostif ! command -v pvecm >/dev/null 2>&1; thenprint_error "This script must be run on a Proxmox VE host"@@ -33,6 +39,7 @@ fiCTID=""VERSION="latest"LOCAL_BINARY=""+QUIET=falsewhile [[ $# -gt 0 ]]; docase $1 in@@ -48,6 +55,10 @@ while [[ $# -gt 0 ]]; doLOCAL_BINARY="$2"shift 2;;+ --quiet)+ QUIET=true+ shift+ ;;*)print_error "Unknown option: $1"exit 1@@ -287,32 +298,29 @@ LEGACY_KEYS_FOUND=falsefor key_type in id_rsa id_dsa id_ecdsa id_ed25519; doif pct exec "$CTID" -- test -f "/root/.ssh/$key_type" 2>/dev/null; thenLEGACY_KEYS_FOUND=true- print_warn "Found legacy SSH key: /root/.ssh/$key_type"+ if [ "$QUIET" != true ]; then+ print_warn "Found legacy SSH key: /root/.ssh/$key_type"+ fipct exec "$CTID" -- rm -f "/root/.ssh/$key_type" "/root/.ssh/${key_type}.pub"- print_info " Removed /root/.ssh/$key_type (proxy will handle SSH)"+ print_info " Removed /root/.ssh/$key_type"fidone-if [ "$LEGACY_KEYS_FOUND" = true ]; then+if [ "$LEGACY_KEYS_FOUND" = true ] && [ "$QUIET" != true ]; thenprint_info ""- print_info "${YELLOW}Legacy SSH keys removed from container${NC}"- print_info "The proxy on the host now handles all SSH connections"- print_info "This improves security by keeping keys outside the container"+ print_info "Legacy SSH keys removed from container for security"print_info ""fi-print_info "${GREEN}Installation complete!${NC}"-print_info ""-print_info "Temperature monitoring will now use the secure host-side proxy"-print_info "SSH keys are stored on the Proxmox host, not in the container"-print_info ""-print_info "To configure temperature monitoring for cluster nodes:"-print_info " 1. Access Pulse UI in container $CTID"-print_info " 2. Go to Settings → Enable Temperature Monitoring"-print_info " 3. The proxy will automatically discover and configure cluster nodes"-print_info ""-print_info "To check proxy status:"-print_info " systemctl status pulse-sensor-proxy"-print_info " journalctl -u pulse-sensor-proxy -f"+if [ "$QUIET" = true ]; then+ print_success "pulse-sensor-proxy installed and running"+else+ print_info "${GREEN}Installation complete!${NC}"+ print_info ""+ print_info "Temperature monitoring will use the secure host-side proxy"+ print_info ""+ print_info "To check proxy status:"+ print_info " systemctl status pulse-sensor-proxy"+fiexit 0