I am working on zabbix 3.2 , I need to know is there any way from which I can show 10 process consuming most cpu or memory via zabbix agent, such that I can see graph for each process.
Currently I have used UserParameter option to get desired output, however the biggest flaw is I am getting single output which shows 10 process and its details and thus I cannot show individual graph for each process.
Input -
UserParameter=AppCPU.Percent,top -bn 1 | grep "^ " | awk '{ printf("%-8s %-8s %-8s %-8s %-8s %-8s %-8s\n",$10, $9, $5, $6, $7, $11, $12); }' | head -n 11
Single Output showing all 10 process detail-
%MEM %CPU VIRT RES SHR TIME+ COMMAND
4.5 23.5 2841420 364968 78044 253:17.57 gnome-shell
0.6 11.8 760812 49612 21516 4:19.34 gnome-terminal-
14.1 11.8 9605788 1.085g 112488 206:38.10 Web
.
.
.
Is there any method using Discovery Rule or some other where I can get information about 10 process and there graphs.
Currently I have used UserParameter option to get desired output, however the biggest flaw is I am getting single output which shows 10 process and its details and thus I cannot show individual graph for each process.
Input -
UserParameter=AppCPU.Percent,top -bn 1 | grep "^ " | awk '{ printf("%-8s %-8s %-8s %-8s %-8s %-8s %-8s\n",$10, $9, $5, $6, $7, $11, $12); }' | head -n 11
Single Output showing all 10 process detail-
%MEM %CPU VIRT RES SHR TIME+ COMMAND
4.5 23.5 2841420 364968 78044 253:17.57 gnome-shell
0.6 11.8 760812 49612 21516 4:19.34 gnome-terminal-
14.1 11.8 9605788 1.085g 112488 206:38.10 Web
.
.
.
Is there any method using Discovery Rule or some other where I can get information about 10 process and there graphs.