From 24c37d5b922ea3e22d90b929cc92afb0fe2b33df Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 16 Jul 2024 17:18:10 +0800 Subject: [PATCH] Update index.py --- plugins/zabbix/index.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/zabbix/index.py b/plugins/zabbix/index.py index 15841359f..87aaf7d5d 100755 --- a/plugins/zabbix/index.py +++ b/plugins/zabbix/index.py @@ -199,11 +199,12 @@ def initZsConf(): mw.writeFile(zs_dst_path, content) def initDreplace(): - # 初始化OP配置 - initOpConf() # 导入MySQL配置 zabbixImportMySQLData() + # 初始化OP配置 + initOpConf() + init_file = getServerDir() + '/init.pl' if not os.path.exists(init_file): initZsConf()