Update index.py

This commit is contained in:
Mr Chen
2024-07-20 02:23:39 +08:00
parent 8f66e8c39e
commit b0f0706dfd
+1 -1
View File
@@ -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'