How do I monitor my database using Zabbix?
Victoria Simmons
Updated on March 27, 2026
How do I monitor my database using Zabbix?
Install the Zabbix Agent on the MySQL Server
- Now, we need to install the Zabbix agent on the computer running the MySQL service.
- tar -zxvf zabbix-4.0.3.tar.gz cd zabbix-4.0.3/ ./configure –enable-agent make make install.
- Copy the Startup scripts included on the Zabbix package.
- Find the location of the zabbix_agentd.
How do I use Discovery on zabbix?
To configure a network discovery rule used by Zabbix to discover hosts and services:
- Go to Configuration → Discovery.
- Click on Create rule (or on the rule name to edit an existing one)
- Edit the discovery rule attributes.
How do I configure my Zabbix agent?
Installation is very simple and includes 3 steps:
- Create configuration file. Create configuration file c:/zabbix_agentd.
- Install agent as a Windows service. zabbix_agentd.exe –install.
- Run agent. Now you can use Control Panel to start agent’s service or run: zabbix_agentd.exe –start.
How do I connect to Zabbix database?
Configuring Zabbix Server
- Install the Zabbix repository on the Zabbix/CA server.
- Install the Zabbix Server, frontend, and agent.
- On DB server run, transfer initial schema and data.
- On the DB server import initial schema and data into the Zabbix DB.
- Verify that all tables are in place.
How do I backup my zabbix MySQL database?
The general manual backup operation steps are as follows:
- Compress and download the entire /data/wwwroot/zabbix directory by SFTP.
- Export Zabbix’s database ny phpMyAdmin.
- Put the source code file, data file and database file in the same folder, named according to the date.
- Backup completed.
What is discovery in Zabbix?
Low-level discovery provides a way to automatically create items, triggers, and graphs for different entities on a computer. For instance, Zabbix can automatically start monitoring file systems or network interfaces on your machine, without the need to create items for each file system or network interface manually.
Where can I find SNMP OID Zabbix?
Find out the SNMP string (or OID) of the item you want to monitor. To get a list of SNMP strings, use the snmpwalk command (part of net-snmp software which you should have installed as part of the Zabbix installation) or equivalent tool: shell> snmpwalk -v 2c -c public .
Is Zabbix really free?
Absolutely Free Zabbix is released under the GPL license, thus is free for commercial and non-commercial use. There are no limitations on the number of monitored devices, you can use Zabbix to monitor many thousands of devices absolutely free.
How do I know if my Zabbix agent is running?
You can check the status by running service pdagent status . If the agent isn’t running, you can start it with the command service pdagent start .
How do I run a Zabbix server in MySQL?
Install and configure Zabbix server for your platform Run the following on your database host. mysql> create database zabbix character set utf8 collate utf8_bin; mysql> create user [email protected] identified by ‘password’; mysql> grant all privileges on zabbix.
What database does Zabbix use?
Database management system Required if MySQL (or Percona) is used as Zabbix backend database. InnoDB engine is required.
How to create Zabbix Database and user on MySQL?
Create Zabbix database and user on MySQL by the following commands, where shall be replaced with the actual root password (e.g., shell> mysql -uroot -p12345) and with new password for zabbix user on the database (including apostrophes: …identified by ‘67890’; ): Then import initial schema and data.
How do I Count the main process in Zabbix?
Zabbix agent checks “cmdline” for the main process and takes a zabbix_agentd_30, which matches our name parameter value zabbix_agentd_30 . So, the main process is counted by item proc.num [zabbix_agentd_30,zabbix] .
Does Zabbix for PostgreSQL support MySQL partitioning?
A solution built natively into Zabbix for PostgreSQL is TimescaleDB, but unfortunately there’s no such built in feature for MySQL. There is however the amazing solution of MySQL partitioning, which we’ll run through in this blogpost. MySQL partitioning is the process of dividing your database into time based chunks.
Where is Apache Zabbix config file located?
Apache configuration file for Zabbix frontend is located in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured. But it’s necessary to uncomment the “date.timezone” setting and set the right timezone for you.