Alertes & notifications
告警类型
- Info — 信息性事件(服务重启、版本更新)
- Warning — 警告(代理不可达、多次重启)
- Action Required — 需要操作(建议新配置)
- Improvement — 检测到改善(连接已恢复、磁盘空间已释放)
通知渠道
PmaControl 支持以下渠道:
- Telegram — 通过
Telegram.php配置:添加机器人、选择 chat_id - Slack — 传入 Webhook
- PagerDuty — 事件 API 集成
- Email — 可配置的 SMTP
Telegram 配置:
# Fichier /srv/www/pmacontrol/configuration/telegram.php
$TELEGRAM_TOKEN = "votre_bot_token";
$TELEGRAM_CHAT_ID = "votre_chat_id"; 告警时间线
Alert 模块维护每台服务器所有事件的时间线。每条记录包含:
- 精确的时间戳
- 类型(Info、Warning、Action Required、Improvement)
- 描述性消息
- 相关服务器
时间线可通过 Web 界面查看并支持导出。