diff --git a/plugins/zabbix_agent/index.py b/plugins/zabbix_agent/index.py index cbbb7d2e1..55253653c 100755 --- a/plugins/zabbix_agent/index.py +++ b/plugins/zabbix_agent/index.py @@ -107,8 +107,10 @@ def initAgentConf(): mw.writeFile(za_dst_path, content) def initDreplace(): - - initAgentConf() + init_file = getServerDir() + '/init.pl' + if not os.path.exists(init_file): + initAgentConf() + mw.writeFile(init_file, 'ok') return True