I'm looking for a script that uses vmstat from cron on like a minute interval to capture processes that utilize 95%+ cpu load. I then need the minute outputs processed so that if any process is consuming more then 95% cpu time for over a period of let's say 10 minutes, only then a single warning email gets sent to me about those processes.
Thanks in advance.