https://www.percona.com/downloads/percona-monitoring-plugins/LATEST/
| [root@zabbix ~] |
| |
| [root@zabbix ~] |
| warning: percona-zabbix-templates-1.1.8-1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY |
| Preparing... |
| Updating / installing... |
| 1:percona-zabbix-templates-1.1.8-1 |
| |
| Scripts are installed to /var/lib/zabbix/percona/scripts |
| Templates are installed to /var/lib/zabbix/percona/templates |
| |
| |
| 模板:Templates are installed to /var/lib/zabbix/percona/templates |
| [root@zabbix /var/lib/zabbix/percona/templates] |
| total 284 |
| -rw-r--r-- 1 root root 18866 Jan 10 2018 userparameter_percona_mysql.conf |
| -rw-r--r-- 1 root root 269258 Jan 10 2018 zabbix_agent_template_percona_mysql_server_ht_2.0.9-sver1.1.8.xml |
| 链接:https://pan.baidu.com/s/1SHwNNRTfVNVmp9T5o3upxQ |
| 提取码:agu8 |
| [root@zabbix /var/lib/zabbix/percona/templates] |
| total 284 |
| -rw-r--r-- 1 root root 18866 Jan 10 2018 userparameter_percona_mysql.conf |
| -rw-r--r-- 1 root root 269258 Jan 10 2018 zabbix_agent_template_percona_mysql_server_ht_2.0.9-sver1.1.8.xml |
| [root@zabbix /var/lib/zabbix/percona/templates] |
| systemctl restart zabbix-agent.service |
| vim /var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php |
| ... |
| $mysql_user = 'zabbix'; |
| $mysql_pass = '123456'; |
| .... |
| [root@zabbix /etc/zabbix/zabbix_agentd.d] |
| 21 |