mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-09-13 06:08:41 +00:00
typofixes - https://github.com/vlajos/misspell_fixer
Suspicious sections: plugins/mail/postfix_mail_stats recieved.label plugins/nginx/nginx_vhost_traffic
This commit is contained in:
parent
8e18199f16
commit
fba800ae52
119 changed files with 176 additions and 176 deletions
|
@ -60,13 +60,13 @@ def fetch(vms):
|
|||
try:
|
||||
cmdline = open("/proc/%s/cmdline" % pid, "r")
|
||||
amount = re.sub(r"^.*-m\x00(.*)\x00-smp.*$",r"\1", cmdline.readline())
|
||||
ammount = int(amount) * 1024 * 1024
|
||||
print "%s_mem.value %s" % (vms[pid], ammount)
|
||||
amount = int(amount) * 1024 * 1024
|
||||
print "%s_mem.value %s" % (vms[pid], amount)
|
||||
except:
|
||||
cmdline = open("/proc/%s/cmdline" % pid, "r")
|
||||
amount = re.sub(r"^.*-m\x00(\d+).*$",r"\1", cmdline.readline())
|
||||
ammount = int(amount) * 1024 * 1024
|
||||
print "%s_mem.value %s" % (vms[pid], ammount)
|
||||
amount = int(amount) * 1024 * 1024
|
||||
print "%s_mem.value %s" % (vms[pid], amount)
|
||||
|
||||
def detect_kvm():
|
||||
''' Check if kvm is installed
|
||||
|
|
|
@ -318,7 +318,7 @@ foreach $host_name (@host_names) {
|
|||
group => "datastore",
|
||||
name => "committed",
|
||||
value => $_->committed,
|
||||
counter => PerfCounterInfo->new(nameInfo => ElementDescription->new(label => "Comitted", summary => "Storage space, in bytes, on this datastore that is actually being used by the virtual machine.\n\nIt includes space actually occupied by disks, logs, snapshots, configuration files etc. Files of the virtual machine which are present on a different datastore (e.g. a virtual disk on another datastore) are not included here.\n\n")),
|
||||
counter => PerfCounterInfo->new(nameInfo => ElementDescription->new(label => "Committed", summary => "Storage space, in bytes, on this datastore that is actually being used by the virtual machine.\n\nIt includes space actually occupied by disks, logs, snapshots, configuration files etc. Files of the virtual machine which are present on a different datastore (e.g. a virtual disk on another datastore) are not included here.\n\n")),
|
||||
vm => $vmId,
|
||||
instance => $uuid,
|
||||
unit => "Bytes" });
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# Author: Adam Crews <doo <at> shroom <dot> com>
|
||||
#
|
||||
# License: GPL
|
||||
# Based on the origional xen script from Matthias Pfafferodt, syntron at web.de
|
||||
# Based on the original xen script from Matthias Pfafferodt, syntron at web.de
|
||||
#
|
||||
# Note: Your munin config must run this as root.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue