#!/bin/bash set -e cd ~/sysmon echo "Building sysmon container..." podman build -t sysmon . echo "Stopping existing container (if any)..." podman stop sysmon 2>/dev/null || true podman rm sysmon 2>/dev/null || true echo "Starting sysmon dashboard on port 8083..." podman run -d \ --name sysmon \ -p 8083:8083 \ --security-opt label=disable \ --add-host=host.containers.internal:host-gateway \ -e SYSMON_SERVERS="compute1:http://host.containers.internal:8084,console:http://192.168.88.5:8083" \ --restart unless-stopped \ sysmon echo "Done. Dashboard at http://$(hostname):8083"