mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
kvm_net: add technical details to 'graph_info'
This commit is contained in:
parent
e0df6aa788
commit
e0b74c69d7
1 changed files with 13 additions and 7 deletions
|
@ -65,13 +65,19 @@ def config(vm_names):
|
||||||
|
|
||||||
@param vm_names : a list of "cleaned" vms' name
|
@param vm_names : a list of "cleaned" vms' name
|
||||||
"""
|
"""
|
||||||
base_config = """graph_title KVM Network I/O
|
print("graph_title KVM Network I/O")
|
||||||
graph_vlabel Bytes rx(-)/tx(+) per second
|
print("graph_vlabel Bytes rx(-)/tx(+) per second")
|
||||||
graph_category Virtualization
|
print("graph_category virtualization")
|
||||||
graph_info This graph shows the network I/O of the virtual machines
|
print("graph_args --base 1024")
|
||||||
graph_args --base 1024
|
print("graph_info This graph shows the network I/O of the virtual "
|
||||||
"""
|
"machines. It is only usable for VMs that were started in a very "
|
||||||
print(base_config)
|
"specific way. If you see no values in the diagrams, then you "
|
||||||
|
"should check, if the command \"ps -ef | grep 'netdev.*ifname='\" "
|
||||||
|
"returns one line of output for every running VM. If there is no "
|
||||||
|
"output, then you need to change the setup of your VMs or you need "
|
||||||
|
"to use a different munin plugin for monitoring the network traffic "
|
||||||
|
"(e.g. 'libvirt').")
|
||||||
|
print()
|
||||||
for vm in vm_names:
|
for vm in vm_names:
|
||||||
print("%s_in.label %s" % (vm, vm))
|
print("%s_in.label %s" % (vm, vm))
|
||||||
print("%s_in.type COUNTER" % vm)
|
print("%s_in.type COUNTER" % vm)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue