標籤:style http os ar art sp line on ad
下載:http://www.percona.com/redir/downloads/percona-monitoring-plugins/1.1.1/percona-zabbix-templates-1.1.1-1.noarch.rpm
安裝:rpm -ivh percona-zabbix-templates-1.1.1-1.noarch.rpm
安裝php php-mysql
將定義key的子配置複製到/usr/local/zabbix/zabbix_agentd.conf.d/下
cp /var/lib/zabbix/percona/templates/luserparameter_percona_mysql.conf /usr/local/zabbix/zabbix_agentd.conf.d/
重啟zabbix_agentd
service zabbix_agentd restart
修改指令碼中的使用者名稱和密碼
vi /var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php
修改mysql_user和mysql_pass(mysql中存在的使用者)
給許可權
grant process,super,select on *.* to [email protected] identified by ‘zabbix‘;
flush privileges;
對指令碼進行調試
/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh gg
把/var/lib/zabbix/percona/templates目錄下面的xml 匯入到模版裡面(配置-模版-載入)
將模版應用於主機
monitoring-graphs ,查看圖形。
用percona monitoring plugins 監控mysql