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)