mysql-cacti-templates-1.1.2.tar.gz免費下載cactiMySQL增加監控

來源:互聯網
上載者:User

mysql-cacti-templates-1.1.2.tar.gz免費下載cactiMySQL增加監控

cacti MySQL增加監控
1. 安裝監控外掛程式
wget http://mysql-cacti-templates.googlecode.com/files/mysql-cacti-templates-1.1.2.tar.gz
如果下載不了 百度雲端硬碟上有 http://pan.baidu.com/s/1hqH6VwK
tar -xzvf mysql-cacti-templates-1.1.2.tar.gz
cp mysql-cacti-templates-1.1.2/ss_get_mysql_stats.php /var/www/html/cacti/scripts/
chown -R cacti.cacti /var/www/html/cacti/scripts
chmod -R 755 /var/www/html/cacti/scripts

使用 瀏覽器 訪問 cacti主機 匯入 mysql-cacti-templates-1.1.2/cacti_host_template_x_db_server_ht_0.8.6i.xml
http://120.132.78.213/cacti/index.php

預設CactiEZ 賬戶和密碼分別是 admin admin
控制台 - 匯入匯出 - 模板匯入 - 瀏覽
選中 cacti_host_template_x_db_server_ht_0.8.6i.xml
儲存

配置cacti的mysql外掛程式
修改 ss_get_mysql_stats.php
vi /var/www/html/scripts/ss_get_mysql_stats.php
mysqluser=‘cacti′;mysql_pass = ‘cacti’;

這個賬戶和密碼是 被監控端主機 給 Cacti主機 授權的 賬戶和密碼
Cacti需要這個賬戶和密碼去串連 被監控機 查詢狀態

配置被監控端的mysql 給 cacti 主機授權
mysql -uroot -p
grant process,super on . to ‘cacti’@’%’ identified by ‘cacti’;
grant process,super on . to ‘cacti’@’10.254.166.60’ identified by ‘cacti’;
flush privileges;

此命令 意義
只允許IP為10.254.166.60 的主機 以 賬戶 cacti 密碼 cacti 去訪問 本機資料

在Cacti主機上(10.254.166.60) 監控Mysql

4.1 為主機添加mysql模組

控制台 - 管理 - 裝置 - 選中之前建立好的主機

然後移到最下面的 添加圖形模版 選中 Mysql相關模組 然後儲存

4.2 為mysql模組建立圖形

控制台 - 建立 - 建立圖形 - 選中該主機 - 選中mysql模組 - 建立

4.3 外掛程式mysql效能資料

監視器 - 選中該主機 - 查閱對應的mysql

完畢

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.