I am new to production support on unix platform I need a script for the following requirement: to monitor CPU usage for all the time in a day on unix server.And it has to send mail if CPU hits 100% and the mail also contains which user,process occupying the maximum CPU usage.And if it contains the first 5 processes occupying the large CPU usage in addition it will be grateful.
Everything should be automatic action and in a single script.
Please help me...
Did you have a look at nagios
and munin
for example?
Why in a single script?
the unix box which i am working now is very critical server
Hence i need to monitor that CPU as mentioned in my requirement
to monitor CPU usage for all the time in a day on unix server.And it has to send mail if CPU hits 100% and the mail also contains which user,process occupying the maximum CPU usage.And if it contains the first 5 processes occupying the large CPU usage in addition it will be grateful.
As I worked on windows platform previously,I dot know how to write script for it
Please some one help me...
I dont know how I am gonna to check CPU all the times
Please help admins...