mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 05:59:25 +08:00
Update index.py
This commit is contained in:
@@ -422,7 +422,7 @@ def zabbixAgentLog():
|
||||
rep = 'LogFile=\s*(.*)'
|
||||
tmp = re.search(rep, content)
|
||||
|
||||
if tmp.groups() == 0:
|
||||
if tmp.groups():
|
||||
return tmp.groups()[0].strip()
|
||||
return '/var/log/zabbix/zabbix_agentd.log'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user