Commit 0182424f authored by 李贺's avatar 李贺

Update 60_processlist_monitor.py

parent 1c8aace6
......@@ -10,7 +10,8 @@ endpoint="172.30.4.75"
def get_all_mountpoint():
data=[]
p0=Popen(['ps','-aux'],stdout=PIPE,stderr=PIPE)
raw_data = Popen(['sort','-k4nr'], stdin=p0.stdout, stdout=PIPE, stderr=PIPE).communicate()[0]
raw_data = Popen(['sort','-k4nr'], stdin=p0.stdout, stdout=PIPE, stderr=PIPE)
raw_data = Popen(['grep','-v','%CPU'], stdin=raw_data.stdout, stdout=PIPE, stderr=PIPE).communicate()[0]
for i in raw_data.split('\n'):
data.append(i)
if len(data) == 60:break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment