Check CPU Usage 

#/bin/bash
 #script name:GetCheckCpu.sh
cpu=`ps -p $1 -o pcpu |grep -v CPU | awk -F . '{print $1}'`
 if [[ $cpu -gt 80 ]]
 then
 {
 echo "The usage of cpu is larger than 80%"
 }
 else
 {
 echo "The usage of cpu is normal"
 }
 fi