Please help me to monitor cpu usage vmstat in Redhat Linux .

Hi ,

Please some one help me How to write a shell script to monitor cpu usage vmstat in Redhat linux .

Thanks,

Suggestion: search the forum for uses on the "top" command. Maybe there is a thread with ideas that can be used.

Install nmon and read up on that. Great for stuff like this.

To start you can use iostat and caputre the CPU_IDLE time and then you can use the formula =100-CPU_IDLE you will get complete details how much load on the servers. You can export the values to excel and generate the graph

Thankyou , I will try to install nmon now.