zabbix 6.4主机名默认不支持中文,可以通过修改文件实现支持中文

vi /usr/share/zabbix/include/defines.inc.php

找到

define('ZBX_PREG_INTERNAL_NAMES', '([0-9a-zA-Z_\. \-]+)'); // !!! Don't forget sync code with C !!!

修改为

define('ZBX_PREG_INTERNAL_NAMES', '([0-9a-zA-Z_\. \-\x{80}-\x{ff}]+)'); // !!! Don't forget sync code with C !!!

然后

systemctl restart zabbix-server