This is a translation of the original English documentation page. Help us make it better.

6 Encoding of returned values

Zabbix server expects every returned text value in the UTF8 encoding. This is related to any type of checks: zabbix agent, ssh, telnet, etc.

Different monitored systems/devices and checks can return non-ASCII characters in the value. For such cases, almost all possible zabbix keys contain an additional item key parameter - <encoding>. This key parameter is optional but it should be specified if the returned value is not in the UTF8 encoding and it contains non-ASCII characters. Otherwise the result can be unexpected and unpredictable.

A description of behavior with different database backends in such cases follows.

MySQL

少なくともMySQLバージョン5.1.61では、値に非UTF8エンコーディングの非ASCII文字が含まれている場合、この文字と次の文字は、データベースが値を格納するときに破棄されます。 警告メッセージはzabbix_server.logに書き込まれません。

PostgreSQL

少なくともPostgreSQLバージョン9.1.3では、値に非UTF8エンコーディングの非ASCII文字が含まれている場合、SQLクエリが失敗し(PGRES_FATAL_ERROR:ERROR invalid byte sequence for encoding)データは保存されません。 適切な警告メッセージがzabbix_server.logに書き込まれます。