I am a beginner in shell scripting, I am looking for a script to add as cron job that can send email or alert an email ID with the CPU percentage from the top command.
This script is basically to bring into attention the user the peak CPU usage of a server. If there are any scripts that do this or anything better to monitor CPU usage/memory usage please point me to it.
Thanks,
Abi
Depending on where your
mailis in your linux flavor, you can tryThis will send you, every 10 minutes, the cpu usage sorted from the highest to the lowest.