Created
Created
Monitoring System Load on Linux System with vmstat and generating graphs from it
| 12345678910111213141516171819202122 |
|
VMLoad - The graphical vmstat-solution
vmload got generated as a continuous observation of vmstat results. It tracks the results in CSV files and is able to generate graphs from these CSV files afterwards using gnuplot. You can either decide to generate the graphs directly after the run is completed or you can create a graph from given CSV files afterwards.Synopsis
$ vmload.sh [-f <CSV-filename>] [-g] [-G] [-r <host>]
Description
Continuously runs
vmstat as command with 1 second between each ping. Results are stored either into a temporary CSV file or a permanant one specified by the -f switch. Creating graphs with either -g or-G requires gnuplot to be installed.
To exit the program press
Ctrl+C which will (if requested) also automatically generate the graphs.-hprint short help-f <name>specifies the output and/or input file where to write the CSV data to. If not specified the data will be written to a temporary file which is deleted afterwards.-gwill automatically generate graphs from the measured CSV data after the program got aborted withCtrl+C. If the CSV file is non-permanent it will be deleted after graph generation.-Gwill create the graphs from a given CSV file. It requires to set-f <name>and will fail otherwise.-r <host>will execute thevmstatcommand on a remote host; host might be anything from just a remote hostname to remote hostname plus username.
Examples
$ vmload.sh
Just runs continuous
vmstat with 1 second delay. A temporary file will be written but deleted immediately after you stop the run with Ctrl+C$ vmload.sh -f vmload.csv
Will run
vmstat with 1 second delay and will write the results to a permanent file vmload.csv. Only one line of the two line vmstat-header is added. The first three columns in addition contain timestamp information.$ vmload.sh -g
Runs the
vmstat command and will generate graphs from the results afterwards. The temporary CSV file will be deleted.$ vmload.sh -f vmload.csv -g
Just as before but the CSV data will be kept in a file named
vmload.csv.$ vmload.sh -f vmload.csv -G
Will not collect anymore data but will directly generate the graphs from the given CSV file of a previous run.
$ vmload.sh -f vmload.csv -r someuser@somehost
Will collect the data from the remote host. Only
vmstat needs to be available on that host.| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
|
scipilot commented on Apr 26, 2012
This looks great, but after creating the CSV, I get:
Althought it does write out vmload.csv.memory.png, but no others. It also happens with -g.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment