Files
varys-monitor/run.sh
T
admin e7596f4f27 feat: add raven-notify monitoring + enable RAVEN_URL alert wiring
15 services total, 5 agents. RAVEN_URL now active.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 11:20:40 +02:00

17 lines
556 B
Bash
Executable File

#!/usr/bin/env bash
# Run varys-monitor: builds image, checks all services and agents, exits.
# Schedule via cron: */15 * * * * /opt/stacks/varys-monitor/run.sh >> /opt/agent-os/logs/varys.log 2>&1
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
docker build -q -t varys-monitor "$SCRIPT_DIR"
docker run --rm \
--network proxy \
--volume /opt/sites:/opt/sites \
--volume /opt/agent-os:/opt/agent-os \
--env SITES_DIR=/opt/sites \
--env AGENT_OS_DIR=/opt/agent-os \
--env RAVEN_URL=http://raven-notify:8400 \
varys-monitor