1. Introduction:
Zabbix MySQL plug-in to monitor the MySQL database, but too simple, basically no role, so need to do more detailed monitoring, and Percona has this detailed monitoring of the template and script, just take it.
Percona Official website: www.percona.com
Percona Composition:1, PHP script for data acquisition 2, Shell script to invoke the acquisition of information 3, Zabbix profile 4, Zabbix template file
2. Installation and configuration (Install on agent side):
1, download and install https:www.percona.com/downloads/percona-monitoring-plugins/LATEST/#also supports Nagios and CATCTI
wget https:Www.percona.com/downloads/percona-monitoring-plugins/percona-monitoring-plugins-1.1.7/binary/redhat/6/x86_64 /percona-zabbix-templates-1.1.7-2. noarch.rpmrpm-IVH percona-zabbix-templates-1.1.7-2. noarch.rpm Yum Install Percona-zabbix-templates PHP Php-mysql-y2. Copy the template configuration file to/etc/zabbix/zabbix_agentd.d/Catalog: CP/var/lib/zabbix/percona/templates/userparameter_percona_mysql.conf/etc/zabbix/zabbix_agentd.d/VI/var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php
$mysql _user=' root ';$mysql _pass=";$mysql _port= 3306;$mysql _socket=NULL;$mysql _flags= 0Note: The test environment root password is empty if the production environment creates a dedicated read-only account. Need to change config file to restart
Systemctl Restart zabbix-the agent is tested and returned to the test results CD/var/lib/zabbix/percona/scripts/./get_mysql_stats_wrapper.sh GM0./get_mysql_stats_wrapper.sh GW20060
2. Import template (import on server side)
The error will be when importing:
Label invalid "/zabbix_export/date": "Yyyy-mm-ddthh:mm:ssz" is expected.
Modified file: https://pan.baidu.com/s/1c3QPXde Password: 291e
Zabbix Monitoring MARIADB Database