diff --git a/plugins/libvirt/kvm_net b/plugins/libvirt/kvm_net index 386c4bda..bca7b7f3 100755 --- a/plugins/libvirt/kvm_net +++ b/plugins/libvirt/kvm_net @@ -63,8 +63,8 @@ def fetch(vms): f = open("/proc/net/dev", "r") for line in f.readlines(): if tap in line: - print "%s_in.value %s" % (vms[pid], re.sub(r"%s:"%tap, "", line.split()[0])) - print "%s_out.value %s" % (vms[pid], line.split()[8]) + print "%s_in.value %s" % (vms[pid], line.split()[1]) + print "%s_out.value %s" % (vms[pid], line.split()[9]) break except Exception as inst: print inst