Changes

Jump to: navigation, search

Traffic accounting through proc

6 bytes removed, 11:36, 5 October 2011
Script: for large int values ​​were not passed properly.
# Parse out the inbound/outbound traffic and assign them to the corresponding variables
eval `/usr/sbin/vzctl exec $veid "grep venet0 /proc/net/dev" | \
awk -F: '{print $2}' | awk '{printf"CTIN=%-15ds\nCTOUT=%-15ds\n", $1, $9}'`
# Send the data to the corresponding RRD time with (N)now as the update time
Anonymous user

Navigation menu