Files
sysmon/run.sh
kamaji 3a9ba28552 Add multi-server system monitor with agent/dashboard architecture
Single Flask codebase runs in agent mode (serves /api/stats from local
/proc) or dashboard mode (aggregates local + remote agents). Currently
monitors compute1 (64-core, podman container) and console (16-core,
bare systemd service).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 19:09:34 -06:00

24 lines
540 B
Bash
Executable File

#!/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 \
-v /proc:/host/proc:ro \
-e SYSMON_SERVERS="compute1:local,console:http://192.168.88.5:8083" \
--restart unless-stopped \
sysmon
echo "Done. Dashboard at http://$(hostname):8083"