Zabbix Monitoring MARIADB Database

Source: Internet
Author: User
Tags php script percona

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.