🐬 MySQL Monitor
Monitors a MySQL database server to verify it's accepting connections.
⚙️ 配置
| 设置 | 描述 | Default Port |
|---|---|---|
| Host | Database server hostname | — |
| Port | MySQL port | 3306 |
📊 What Gets Checked
The monitor opens a TCP connection to the MySQL port and reads the server greeting banner. This confirms:
- ✅ MySQL service is running
- ✅ Port is open and accepting connections
- ✅ Network connectivity is working
💡 技巧
- This is a connection-level check. It doesn't execute queries or check database health.
- Make sure your MySQL server allows connections from your Monitron server's IP (check
bind-addressinmy.cnf). - For remote monitoring, your firewall must allow connections on port 3306 from the Monitron server.
- Consider combining with a Heartbeat monitor that runs a health check query via cron.