rmm2/agent-linux/install.sh
cynfo3000 7f9fbd257f Linux/Proxmox Agent + Plattform-Updater + Proxmox Frontend
- agent-linux/: Kompletter Linux/Proxmox RMM Agent
  - Collectors: CPU, Memory, Disk, Network, Services, Updates, Proxmox (VMs, Container, Storage, ZFS), Backups
  - Backup Collector: Jobs nach Node gefiltert (Cluster-aware)
  - WebSocket: Tunnel-Support, writeMux fuer stabile Verbindungen
  - Systemd Service Template

- updater/: Plattform-unabhaengiger Updater (FreeBSD + Linux)
  - runtime.GOOS erkennt Plattform automatisch
  - FreeBSD: /usr/local/rmm/, service rmm_agent
  - Linux: /usr/local/bin/, /etc/rmm/, systemctl rmm-agent
  - Firmware-Download mit ?platform= Parameter

- frontend/: Proxmox-Bereich
  - ProxmoxServers.jsx: Eigene Seite fuer PVE Server mit VM/CT Counts
  - ProxmoxPanel.jsx: Detail-Panel mit Uebersicht, VMs, Container, Storage, ZFS, Tunnel, Dienste, Updates, Backups
  - Agents.jsx: Filtert Linux-Agents raus (nur OPNsense)
  - Sidebar: Proxmox Navigationspunkt
  - Installationsanleitung mit rmm-agent-linux + rmm-updater-linux

- backend: Platform-Feld fuer Agents, Firmware multi-platform
2026-03-01 22:03:18 +01:00

46 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# RMM Agent Linux Installation Script
set -e
echo "==> Installing RMM Agent Linux"
# Check if running as root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
# Create directories
mkdir -p /etc/rmm
mkdir -p /usr/local/bin
# Copy binary
if [ ! -f "rmm-agent-linux" ]; then
echo "Error: rmm-agent-linux binary not found in current directory"
exit 1
fi
cp rmm-agent-linux /usr/local/bin/rmm-agent-linux
chmod +x /usr/local/bin/rmm-agent-linux
# Copy service file
cp rmm-agent-linux.service /etc/systemd/system/
# Create example config if it doesn't exist
if [ ! -f "/etc/rmm/config.yaml" ]; then
cp config.yaml.example /etc/rmm/config.yaml
echo "==> Created /etc/rmm/config.yaml - please edit with your backend URL and API key"
fi
# Reload systemd and enable service
systemctl daemon-reload
systemctl enable rmm-agent-linux
echo "==> Installation complete!"
echo ""
echo "Next steps:"
echo "1. Edit /etc/rmm/config.yaml with your backend URL and API key"
echo "2. Start the service: systemctl start rmm-agent-linux"
echo "3. Check status: systemctl status rmm-agent-linux"
echo "4. View logs: journalctl -u rmm-agent-linux -f"