Ad Widget

Collapse

Getting values from ps uax or top and sorting them

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pietro54
    Senior Member
    • Feb 2011
    • 112

    #1

    Getting values from ps uax or top and sorting them

    Hello,
    I need to make history of processes of my machines.
    For now I made two user parameters:
    UserParameter=cpuprocess,top -b -n 1 | head -n 20 | tail -n 14
    UserParameter=memprocess,ps aux --sort -rss | head -20
    So I`m getting two list of proceses, this is ok, but its very basic. It will be much better when i can sort thous processes in zabbix.
    I mean, zabbix get whole list of processes. In history we can sort list like in top when you press "m" for sort by memory load or "c" to sort by cpu load.

    Maybe someone got idea how to do that?
    I think it will be really helpful feature.

    Piotr
Working...