Monitoring Graphs using GNUPLOT

Need assistance in getting a monitoring script to create Grpahs Using GNUPLOT using below data.

Graph for CPU, MEMORY , NETWORK in png. For memory can we convert the GB TO MB

----system---- ----total-cpu-usage---- ------memory-usage----- -net/total-
     time     |usr sys idl wai hiq siq| used  buff  cach  free| recv  send
29-12 16:03:20|  0   1  98   0   0   0|15.5G 1396M 44.0G 2209M|   0     0
29-12 16:04:20|  0   0  99   0   0   0|15.5G 1396M 44.1G 2138M|1953k 5639k
29-12 16:05:20|  0   0  99   0   0   0|15.5G 1396M 44.0G 2235M|2223k 5589k
29-12 16:06:20|  0   0  99   0   0   0|15.5G 1396M 44.0G 2201M|1519k 5764k

It can help to follow examples like this one...

A collection of Gnuplot examples | alvinalexander.com


Can you guide me on how I can convert a Kb to MB using gnuplot example and creat a graph with the below data .

29-12 20:19:48 14995353600.0 1415991296.0 49501515776.0 1763774464.0
29-12 20:19:49 14996996096.0 1415991296.0 49503875072.0 1759772672.0
29-12 20:19:50 15169667072.0 1415979008.0 49490980864.0 1600008192.0
29-12 20:19:51 14989484032.0 1415979008.0 49485000704.0 1786171392.0

I couldn't get much help by reading the article blackrageous

This might get you started - note that your label field (#1) contains a space so it's best to use tab for field separator.

#!/usr/bin/gnuplot

set terminal png size 1024,768
set output 'graph.png'
set title "System monitoring"

set style data histogram
set style histogram cluster gap 1
set style fill solid border -1
set boxwidth 0.75 
set xtic scale 0
set key outside

set ylabel "MB"
set key left
set datafile separator "\t"

plot 'datafile' using ($2/1e6):xtic(1) title "Memory" fc rgb '#99ffff', \
     'datafile' using ($3/1e6)         title "Buffer" fc rgb '#4671d5', \
     'datafile' using ($4/1e6)         title "Cache"  fc rgb '#06d075', \
     'datafile' using ($5/1e6)         title "Free"   fc rgb '#4f4f4f'

Result:

Chubler_XL thank you for the excellent grpah . It works.

Instead of bars can we also have a wave graph

You can have whatever you want. Gnuplot has thousands of options, see examples here. Fiddle until you find the combination you want.