From 23ba7bf636ed98bfb27c087d2433fbd788801b9a Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 15 Jul 2024 23:22:36 +0800 Subject: [PATCH] Update index.py --- plugins/zabbix/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/zabbix/index.py b/plugins/zabbix/index.py index e07c327aa..d3dc165ab 100755 --- a/plugins/zabbix/index.py +++ b/plugins/zabbix/index.py @@ -186,7 +186,7 @@ def zabbixImportMySQLData(): # php配置 if not os.path.exists(php_dst_path): content = mw.readFile(php_src_tpl) - content = contentReplace(content) + content = content.replace('{$ZABBIX_PORT}', getMySQLPort()) content = content.replace('{$ZABBIX_PASS}', db_pass) mw.writeFile(php_dst_path, content)