mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
Update task.py
This commit is contained in:
@@ -256,6 +256,11 @@ def systemTask():
|
||||
tmp = {}
|
||||
# 取当前CPU Io
|
||||
tmp['used'] = psutil.cpu_percent(interval=1)
|
||||
if tmp['used'] > 80:
|
||||
panel_data = mw.getConfig()
|
||||
ip = mw.getHostAddr()
|
||||
msg = '节点[' + panel_data['title'] + ':' + ip + ']处于高负载,请排查原因!'
|
||||
mw.notifyMessage(msg, '面板任务', 600)
|
||||
|
||||
if not cpuInfo:
|
||||
tmp['mem'] = sm.getMemUsed()
|
||||
|
||||
Reference in New Issue
Block a user