在 Cacti 服務器端安裝 MySQL 監控模板。
wget https://mysql-cacti-templates.googlecode.com/files/better-cacti-templates-1.1.8.tar.gz
tar -xvf better-cacti-templates-1.1.8.tar.gz
cd better-cacti-templates-1.1.8
解壓後需根據官方文檔將模板導入 Cacti,配置數據源、圖表模板及主機關聯。具體步驟包括:
PROCESS、SUPER、REPLICATION CLIENT 權限)注意:原 Google Code 托管已遷移,建議從 GitHub 或 Percona 官方獲取最新版模板。