mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 03:49:25 +08:00
Update index.py
This commit is contained in:
@@ -106,7 +106,18 @@ def initAgentConf():
|
||||
content = contentReplace(content)
|
||||
mw.writeFile(za_dst_path, content)
|
||||
|
||||
def initAgentDConf():
|
||||
clist = ['userparameter_mysql.conf', 'userparameter_examples.conf']
|
||||
dst_dir = '/etc/zabbix/zabbix_agentd.d'
|
||||
for c in clist:
|
||||
za_src_tpl = getPluginDir()+'/conf/zabbix_agentd/'+c
|
||||
dst_path = dst_dir+'/'+c
|
||||
if not os.path.exists(dst_path):
|
||||
content = mw.readFile(za_src_tpl)
|
||||
mw.writeFile(dst_path,content)
|
||||
|
||||
def initDreplace():
|
||||
initAgentDConf()
|
||||
init_file = getServerDir() + '/init.pl'
|
||||
if not os.path.exists(init_file):
|
||||
initAgentConf()
|
||||
|
||||
Reference in New Issue
Block a user