[general]
enabled = true
db_path = /var/lib/whp-ai-monitor/monitor.db

[ai]
# LiteLLM-compatible API endpoint (OpenAI SDK format)
base_url = http://localhost:4000/v1
api_key_file = /etc/whp/ai-monitor.key
# Basic model for triage and simple errors
basic_model = global.anthropic.claude-haiku-4-5-20251001-v1:0
# Advanced model for complex diagnosis (escalated from basic)
advanced_model = global.anthropic.claude-sonnet-4-6
max_calls_per_run = 10
max_calls_per_day = 100

[auto_remediation]
enabled = true
restart_services = true
restart_containers = true
# Config file editing is disabled by default for safety
edit_configs = false
cooldown_minutes = 15
max_per_hour = 5
circuit_breaker_threshold = 3

[notifications]
enabled = false
# Configure one or more notification channels
discord_webhook_url =
# Discord role IDs to @mention per severity (get ID: \@role in Discord, copy ID)
discord_role_critical =
discord_role_warning =
discord_role_info =
slack_webhook_url =
telegram_bot_token =
telegram_chat_id =

[log_sources]
apache_error = /var/log/httpd/error_log
phpfpm_error = /var/log/php-fpm/www-error.log
haproxy_watchdog = /var/log/haproxy-watchdog.log
backup_log = /var/log/whp-backup.log
wordpress_update = /var/log/wordpress-auto-update.log
security_monitor = /var/log/whp-log-monitor.log
proftpd = /var/log/proftpd/proftpd.log
dmesg = true

[docker_containers]
# System containers to monitor (comma-separated)
system = mysql,postgresql,haproxy-manager,memcache

# [customer_monitoring] section retired.
# Global toggle lives in /docker/whp/settings.json → customer_monitoring.enabled
# Monitored-site list lives in whp.ai_monitor_subscriptions (managed via the
# Customer Monitoring Management card on the AI Monitor admin page).

[systemd_services]
# Systemd services to monitor via journalctl (comma-separated)
monitor = httpd,php-fpm,docker,proftpd,whp-terminal,whp-backup-upload
