Please assist in scripting cpu monitoring alert.
The server is red hat linux
1) How can i script the cpu utlization output from 'top' command and than have that output be sent to my email every 30minutes.
2) Similar to the first question. How can i write a script, so that when cpu utlization has been above 90% for more than 60minutes, i would get an email alert.