linuxtricks
IS-IT--Management
Hi.
I'm used to a data collection service under VMS that collects all data for the entire system...you can then get graphs or tables of anything that went on in the system during any time period.
Let's say a server goes down at 12 noon today. I want to be able to refer back to some output that displays what was using the most cpu or memory or hd I/O , etc... from 11am to 12pm so that I can determin which app caused the headache.
Does anyone know of a way to get a listing of the processes that are using the highest amount of cpu in a system (like top does)? I'll need to find out how I can take that information and graph it out over a period of time.
I installed rrdtool and collected data from particular processes ok: [i.e. mysql cpu utilization reported by 'top'.]
[red]top n 1 b | grep mysqld | awk -- 'BEGIN { FS = " " } { print $9 }' | sed -e 's/\%//'[/red]
Thing is, I'm not sure how I can collect the information for every process on the machine over a period of time.
If top can:
run once every 5 mins or so... and automatically output everything it shows to a graph - and have the graph show the sequencial data through time, it would be exactly what I needed!
any help or ideas?
---
Try not. Do. Or do not. There is no try.
I'm used to a data collection service under VMS that collects all data for the entire system...you can then get graphs or tables of anything that went on in the system during any time period.
Let's say a server goes down at 12 noon today. I want to be able to refer back to some output that displays what was using the most cpu or memory or hd I/O , etc... from 11am to 12pm so that I can determin which app caused the headache.
Does anyone know of a way to get a listing of the processes that are using the highest amount of cpu in a system (like top does)? I'll need to find out how I can take that information and graph it out over a period of time.
I installed rrdtool and collected data from particular processes ok: [i.e. mysql cpu utilization reported by 'top'.]
[red]top n 1 b | grep mysqld | awk -- 'BEGIN { FS = " " } { print $9 }' | sed -e 's/\%//'[/red]
Thing is, I'm not sure how I can collect the information for every process on the machine over a period of time.
If top can:
run once every 5 mins or so... and automatically output everything it shows to a graph - and have the graph show the sequencial data through time, it would be exactly what I needed!
any help or ideas?
---
Try not. Do. Or do not. There is no try.