|
From: Bart V. <Bar...@te...> - 2013-10-30 11:03:56
|
I'm trying to plot an output file from dstat obtained with dstat -tv --output dstat_timed.csv the data-file looks as follows: ----------------------------------------------------------------------------- "Dstat 0.7.2 CSV output" "Author:","Dag Wieers <da...@wi...>",,,,"URL:","http://dag.wieers.com/home-made/dstat/" "Host:","maverick",,,,"User:","mc303" "Cmdline:","dstat -tv --output dstat_timed.csv",,,,"Date:","30 Oct 2013 11:19:41 CET" "system","procs",,,"memory usage",,,,"paging",,"dsk/total",,"system",,"total cpu usage",,,,, "time","run","blk","new","used","buff","cach","free","in","out","read","writ","int","csw","usr","sys","idl","wai","hiq","siq" 30-10 11:19:41,0.000,0.0,1.284,729153536.0,416268288.0,1697247232.0,1353175040.0,0.0,0.0,230338.748,250793.406,1390.199,2597.766,12.913,5.164,74.172,7.655,0.005,0.092 30-10 11:19:42,0.0,0.0,0.0,729186304.0,416268288.0,1697263616.0,1353125888.0,0.0,0.0,0.0,0.0,955.0,1634.0,3.535,4.040,92.424,0.0,0.0,0.0 30-10 11:19:43,0.0,0.0,1.0,729186304.0,416268288.0,1697263616.0,1353125888.0,0.0,0.0,0.0,0.0,1104.0,2043.0,5.612,4.082,89.796,0.0,0.0,0.510 30-10 11:19:44,0.0,0.0,1.0,729194496.0,416268288.0,1697263616.0,1353117696.0,0.0,0.0,0.0,0.0,1071.0,1841.0,6.186,3.093,90.722,0.0,0.0,0.0 30-10 11:19:45,0.0,0.0,17.0,730214400.0,416268288.0,1697263616.0,1352097792.0,0.0,0.0,0.0,4096.0,1313.0,2408.0,7.143,3.571,89.286,0.0,0.0,0.0 ----------------------------------------------------------------------------- I'm trying to plot with the following script: --------------------------------------------------- set datafile separator "," set xlabel "Time" set xdata time set timefmt "%d-%m %H:%M:%S" set format x "%H:%M" set title "procs" plot "dstat_timed.csv" u 1:2 t columnheader(2) w lp, \ "" using 1:3 t columnheader(3) w lp, \ "" using 1:4 t columnheader(4) w lp --------------------------------------------------- but unfortunately, this only works if I uncomment the first 6 lines in the data-file. I already tried plotting with plot "dstat_timed.csv" u 1:2 every ::6 t columnheader(2) w lp but this didn't help. How can I tell gnuplot to ignore the first 6 lines in the data-file? Thanks for your help, Bart |