Best way to retrieve container network usage / counters [message #49150] |
Tue, 02 April 2013 14:10  |
nostalgeek
Messages: 3 Registered: April 2013 Location: Canada
|
Junior Member |
|
|
Hi,
I'm trying to read CT network usage / counters for reporting purposes.
Something like:
vzctl exec CTID cat /proc/net/dev
But independent from the CT, something that runs from the HN/Host/ hardware node.
The problem with "vzctl exec" is that the binary (cat in this example) is read from the CT area. A user could cheat the reporting by replacing /bin/cat inside his container.
I could not find anything looking at the various OpenVZ /proc entries on the HN.
Thanks
Simon
|
|
|
|