zabbix-agent-extension-mysql - this extension for monitoring mysql.
This extension obtains stats of three types:
# Building
git clone https://github.com/zarplata/zabbix-agent-extension-mysql.git
cd zabbix-agent-extension-mysql
make
#Installing
make install
# By default, binary installs into /usr/bin/ and zabbix config in /etc/zabbix/zabbix_agentd.conf.d/ but,
# you may manually copy binary to your executable path and zabbix config to specific include directory
# Building
git clone https://github.com/zarplata/zabbix-agent-extension-mysql.git
git checkout pkgbuild
makepkg
#Installing
pacman -U *.tar.xz
Add mysql users:
GRANT REPLICATION CLIENT,PROCESS ON *.* TO 'zabbix'@'127.0.0.1' IDENTIFIED BY 'zabbix';
zabbix-agent-extension-mysql requires zabbix-agent v3.4+ to run.
In order to start getting metrics, it is enough to import template and attach it to monitored node.
WARNING:
You must define macro with name - {$ZABBIX_SERVER_IP}
in global or local (template) scope with IP address of zabbix server.