[SOLVED] RRD graphics

dragonauta

Member
Jan 20, 2014
29
0
21
Hi all.
I was wondering if I can use rrdtools to generate graphics of some CT and VM from some past time, lets say a full day on past month.

I didn't tried yet, nor read about it because its late night here. Will investigate tomorrow.

Is there an example command line that someone can share about printing a png of a CT?

Thanks

Enviado desde mi GT-I8190L mediante Tapatalk
 
Last edited:
Ok, figured out. Posting for anyone interested.

After reading rrd documentation and this howto: http://ds9a.nl/rrd-mini-howto/cvs/rrd-mini-howto/output/rrd-mini-howto-1.html

I found that can retrieve what are the values in rrdcached with "rrdtool info /var/lib/rrdcached/db/pve2-vm/[VMID]"

Then using rrdtool
Code:
rrdtool graph /path/to/graph.png DEF:pkt=[VMID]:cpu:AVERAGE LINE:pkt#ff0000:CPU --start -2h
for the 2 last hours cpu graph.

From this, it's easy to retrieve graph back in time.