Traffic accounting

vmtab* contains the VM ID

Ah, cool.
So that's the easiest way to do basic traffic accounting per guest.

Add a simple daemon which reads the stats every 5 minutes or so, saves it in some format to be parsed later and you have very nice traffic accounting (per hour, day, month etc.).

Is there an easy way to save the counters on guest shutdown/exit/crash?

-------

On 64 bit kernels, when are the ifconfig counters resetted ("overflow", i.e. start from 0)? For 32 bit kernels it's 4 GB I think.
For 64 bits, that would be, 16.8 million terabytes? It's a lot and I don't think it can ever overflow. I'm not sure about 64-bit processors which are limited to 40- or 48-bit address space though.
 
Hello,
is this script working, because every time I get:
/var/lib/rrd/500.rrd does not exist, creating.
ERROR: opening '/var/lib/rrd/500.rrd': No such file or directory

the file isnt created, and If I try to replace update with create in the script I get error:
tiger:/var/lib/rrd# /usr/bin/rrdtool create $RRDFILE N:1370495775:2147483647
ERROR: can't parse argument 'N:1370495775:2147483647'


any suggestions?

I`m using http://wiki.openvz.org/Traffic_accounting_through_proc
 
You have to add a creation command where it says:

# Place your preferred RRD Creation command here

i got errors about wrong format or something, but haven't had the
time to figure out the right command.
 
I also didnt find working command. Every parameter for rrdtool create is wrong.

None of the openvz`s wiki articles about bandwidth, monitoring and such is completed and working:(
 

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!