[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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!