Hi,
I am trying to fetch CPU utilization by db2sysc process. So that if its crossed 80 or 90% of cpu utilization we will get an automatic alert.
Following formula I am using to calucate CPU utilization be db2sysc process :
ps -eo pcpu,pid,comm | grep -i db2sysc | awk '{ SUM+=$1; } END { print SUM }'
Result of above formula and topas output are not same its always different.
Please let me know the best way to calculate CPU utilization by db2sysc process.