diff options
author | mh <mh@immerda.ch> | 2012-09-15 16:18:54 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-09-15 16:18:54 +0200 |
commit | a29438a07e9af6ccdcadd465492e527f6ba4a8ab (patch) | |
tree | c80393a613873018b31634a91cd74621a7f74c0e /files/plugins/kvm_net | |
parent | d304394caaf15c0bc1f23c5e57fabcdffd86b90d (diff) |
cleanup plugins
Diffstat (limited to 'files/plugins/kvm_net')
-rw-r--r-- | files/plugins/kvm_net | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/files/plugins/kvm_net b/files/plugins/kvm_net index bcad719..c7b5aca 100644 --- a/files/plugins/kvm_net +++ b/files/plugins/kvm_net @@ -28,19 +28,18 @@ def config(vms): graph_vlabel Bytes rx(-)/tx(+) per second graph_category KVM graph_info This graph shows the network I/O of the virtual machines -graph_args --base 1024 - """ +graph_args --base 1024""" print base_config for pid in vms: macs = get_vm_macs(pid) i = 0 for mac in macs: - print "%s_eth%s_in.label %s" % (vms[pid],i, vms[pid]) + print "%s_eth%s_in.label %s_eth%s" % (vms[pid],i, vms[pid], i) print "%s_eth%s_in.type COUNTER" % (vms[pid], i) print "%s_eth%s_in.min 0" % (vms[pid],i) print "%s_eth%s_in.draw LINE2" % (vms[pid],i) print "%s_eth%s_out.negative %s_eth%s_in" % (vms[pid], i, vms[pid], i) - print "%s_eth%s_out.label %s" % (vms[pid], i, vms[pid]) + print "%s_eth%s_out.label %s_eth%s" % (vms[pid], i, vms[pid], i) print "%s_eth%s_out.type COUNTER" % (vms[pid], i) print "%s_eth%s_out.min 0" % (vms[pid], i) print "%s_eth%s_out.draw LINE2" % (vms[pid], i) |