{"action":"closed","issue":{"url":"https://api.github.com/repos/pm2-hive/pm2-server-monit/issues/7","labels_url":"https://api.github.com/repos/pm2-hive/pm2-server-monit/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/pm2-hive/pm2-server-monit/issues/7/comments","events_url":"https://api.github.com/repos/pm2-hive/pm2-server-monit/issues/7/events","html_url":"https://github.com/pm2-hive/pm2-server-monit/issues/7","id":92132787,"number":7,"title":"New commands","user":{"login":"Unitech","id":757747,"avatar_url":"https://avatars.githubusercontent.com/u/757747?v=3","gravatar_id":"","url":"https://api.github.com/users/Unitech","html_url":"https://github.com/Unitech","followers_url":"https://api.github.com/users/Unitech/followers","following_url":"https://api.github.com/users/Unitech/following{/other_user}","gists_url":"https://api.github.com/users/Unitech/gists{/gist_id}","starred_url":"https://api.github.com/users/Unitech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unitech/subscriptions","organizations_url":"https://api.github.com/users/Unitech/orgs","repos_url":"https://api.github.com/users/Unitech/repos","events_url":"https://api.github.com/users/Unitech/events{/privacy}","received_events_url":"https://api.github.com/users/Unitech/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-30T16:05:50Z","updated_at":"2015-09-09T11:54:33Z","closed_at":"2015-09-09T11:54:33Z","body":"Add commands to retrieve output of commands:\r\n- [x] display vmstats: vmstat\r\n- [x] processes per user counter: ps hax -o user | sort | uniq -c\r\n- [x] list space disk: df\r\n- [x] who\r\n- [x] uptime\r\n- [x] ten top CPU consuming processes: ps -eo pcpu,user,args --no-headers| sort -t. -nk1,10 -k4,4 -r | head -n 10 | cut -c 1-60\r\n- [x] listening ports: lsof -Pni4 | grep LISTEN\r\n- [x] list number of open files: lsof -i -n -P | wc -l\r\n- [x] list top processes using memory: ps -eo pmem,pid,cmd | sort -k 1 -nr | head -10 | cut -c 1-60"}}