diff --git a/plugins/zabbix_agent/index.py b/plugins/zabbix_agent/index.py index 3a13974aa..24be331ee 100755 --- a/plugins/zabbix_agent/index.py +++ b/plugins/zabbix_agent/index.py @@ -117,9 +117,10 @@ def initAgentDConf(): mw.writeFile(dst_path,content) def initDreplace(): - initAgentDConf() + init_file = getServerDir() + '/init.pl' if not os.path.exists(init_file): + initAgentDConf() initAgentConf() openPort() mw.writeFile(init_file, 'ok')