Update index.py

This commit is contained in:
Mr Chen
2024-07-16 11:25:04 +08:00
parent 03c5191e89
commit f06b5004e2
+1 -1
View File
@@ -71,7 +71,7 @@ def getPidFile():
return tmp.groups()[0].strip()
def status():
cmd = "ps aux|grep zabbix-agent |grep -v grep | grep -v python | grep -v mdserver-web | awk '{print $2}'"
cmd = "ps aux|grep zabbix_agentd |grep -v grep | grep -v python | grep -v mdserver-web | awk '{print $2}'"
data = mw.execShell(cmd)
if data[0] == '':
return 'stop'