Verify a Livepeer gateway is alive and routing jobs - health endpoints, status commands, deposit checks, and orchestrator reachability for Video, AI, and Dual gateways.
This is the first of five monitoring guides. Run these checks after starting a gateway, after any configuration change, or when something seems wrong. Health checks are quick - for full observability setup, see .
#!/usr/bin/env bash# gateway-health.sh - run every 5 minutes via cronGATEWAY_PORT="${1:-8935}"ALERT_EMAIL="ops@example.com"if ! curl --silent --fail --max-time 5 http://localhost:${GATEWAY_PORT}/health > /dev/null 2>&1; then echo "Gateway on port ${GATEWAY_PORT} is not responding" | \ mail -s "ALERT: Livepeer Gateway Down" "$ALERT_EMAIL"fi
Add to crontab
Copy
Ask AI
# Add to crontab*/5 * * * * /path/to/gateway-health.sh 8935