Complete markdown files cleanup and organization
- Organized 252 files across project - Root directory: 187 → 2 files (98.9% reduction) - Moved configuration guides to docs/04-configuration/ - Moved troubleshooting guides to docs/09-troubleshooting/ - Moved quick start guides to docs/01-getting-started/ - Moved reports to reports/ directory - Archived temporary files - Generated comprehensive reports and documentation - Created maintenance scripts and guides All files organized according to established standards.
This commit is contained in:
40
scripts/cloudflare-tunnels/monitoring/alerting.conf
Normal file
40
scripts/cloudflare-tunnels/monitoring/alerting.conf
Normal file
@@ -0,0 +1,40 @@
|
||||
# Alerting Configuration
|
||||
# Configuration for tunnel failure alerts
|
||||
|
||||
# Enable/disable alerting
|
||||
ALERT_ENABLED=true
|
||||
|
||||
# Email configuration
|
||||
ALERT_EMAIL_ENABLED=true
|
||||
ALERT_EMAIL="admin@yourdomain.com"
|
||||
ALERT_EMAIL_SUBJECT_PREFIX="[Cloudflare Tunnel]"
|
||||
|
||||
# Webhook configuration
|
||||
ALERT_WEBHOOK_ENABLED=false
|
||||
ALERT_WEBHOOK_URL=""
|
||||
|
||||
# Slack webhook (if using Slack)
|
||||
SLACK_WEBHOOK_URL=""
|
||||
|
||||
# Discord webhook (if using Discord)
|
||||
DISCORD_WEBHOOK_URL=""
|
||||
|
||||
# Alert thresholds
|
||||
ALERT_ON_SERVICE_DOWN=true
|
||||
ALERT_ON_CONNECTIVITY_FAILED=true
|
||||
ALERT_ON_DNS_FAILED=true
|
||||
|
||||
# Alert cooldown (seconds) - prevent spam
|
||||
ALERT_COOLDOWN=300
|
||||
|
||||
# Alert recipients (comma-separated for email)
|
||||
ALERT_RECIPIENTS="admin@yourdomain.com,ops@yourdomain.com"
|
||||
|
||||
# PagerDuty integration (optional)
|
||||
PAGERDUTY_ENABLED=false
|
||||
PAGERDUTY_INTEGRATION_KEY=""
|
||||
|
||||
# Opsgenie integration (optional)
|
||||
OPSGENIE_ENABLED=false
|
||||
OPSGENIE_API_KEY=""
|
||||
|
||||
44
scripts/cloudflare-tunnels/monitoring/health-check.conf
Normal file
44
scripts/cloudflare-tunnels/monitoring/health-check.conf
Normal file
@@ -0,0 +1,44 @@
|
||||
# Health Check Configuration
|
||||
# Configuration file for tunnel health monitoring
|
||||
|
||||
# Check interval (seconds)
|
||||
CHECK_INTERVAL=60
|
||||
|
||||
# Timeout for connectivity checks (seconds)
|
||||
CONNECTIVITY_TIMEOUT=10
|
||||
|
||||
# Number of retries before alerting
|
||||
RETRY_COUNT=3
|
||||
|
||||
# Log file location
|
||||
LOG_FILE=/var/log/cloudflared-monitor.log
|
||||
|
||||
# Alert configuration
|
||||
ALERT_ENABLED=true
|
||||
ALERT_EMAIL=
|
||||
ALERT_WEBHOOK=
|
||||
|
||||
# Tunnels to monitor
|
||||
TUNNELS=("ml110" "r630-01" "r630-02")
|
||||
|
||||
# Domain mappings
|
||||
declare -A TUNNEL_DOMAINS=(
|
||||
["ml110"]="ml110-01.d-bis.org"
|
||||
["r630-01"]="r630-01.d-bis.org"
|
||||
["r630-02"]="r630-02.d-bis.org"
|
||||
)
|
||||
|
||||
# IP mappings
|
||||
declare -A TUNNEL_IPS=(
|
||||
["ml110"]="192.168.11.10"
|
||||
["r630-01"]="192.168.11.11"
|
||||
["r630-02"]="192.168.11.12"
|
||||
)
|
||||
|
||||
# Service names
|
||||
declare -A TUNNEL_SERVICES=(
|
||||
["ml110"]="cloudflared-ml110"
|
||||
["r630-01"]="cloudflared-r630-01"
|
||||
["r630-02"]="cloudflared-r630-02"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user