Crmgo Blog

Zabbix, changing the encoding

Zabbix, changing the encoding

Anyone who has installed a Zabbix server has encountered the encoding issue in the Web GUI interface, where all Russian text is displayed as question marks. The problem lies in the default character sets of the database tables, which we will modify to fix it. We need to convert the character set of the tables and...

Zabbix, changing the encoding

Anyone who has set up a Zabbix server has encountered the encoding issue in the Web GUI interface, where all Russian text is displayed as question marks. The problem lies in the default character sets of the database tables, which we will modify to fix it.

We need to convert the character set of the tables and their data from latin1 to UTF-8.
First, stop the zabbix-server:

Next, you need to dump the database.

As you can see, we excluded 3 tables from the dump because they do not contain any rows, and the MySQL server crashed during the import of the modified dump when dealing with the images table.

We place these three tables into a separate dump, which we will not modify.

We strongly recommend saving the original dumps to enable rollback if necessary.

Change the encoding of all records in the z1.sql dump.

Replace all encoding references in the z2.sql dump.

We recreate the database to clear it of all tables and create it with the required encoding.

Load the z4.sql dump into the database.

Load the z3.sql dump into the database

And restart the Zabbix server

Verify the correct operation of the Zabbix server WEB interface. In case of problems, revert to the z1.sql and z4.sql dumps.

Note: This post may be AI-assisted and then human-edited. Editorial responsibility: Dmytro Lomaka, Kaltenkirchen.