mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Plugin lxc: unify whitespace
This commit is contained in:
parent
c0fe6dc3c7
commit
6696a4d894
1 changed files with 10 additions and 6 deletions
|
@ -110,11 +110,13 @@ function active_guests {
|
|||
echo $active
|
||||
}
|
||||
|
||||
|
||||
function lxc_cgroup {
|
||||
# lxc3 (lxc < 3: may output some warnings if there is cruft in your config dir)
|
||||
lxc-cgroup -o /dev/stdout -l INFO $* | sed 's/^.*lxc_cgroup.c:main:[0-9][0-9]* - //'
|
||||
}
|
||||
|
||||
|
||||
function lxc_netdev {
|
||||
local g=$1 dev
|
||||
|
||||
|
@ -128,6 +130,7 @@ function lxc_netdev {
|
|||
fi
|
||||
}
|
||||
|
||||
|
||||
# find proper sysfs and count it
|
||||
# Debian 6.0: /sys/fs/cgroup/<container>/tasks
|
||||
# Ubuntu 12.04 with fstab: /sys/fs/cgroup/lxc/<container>/tasks
|
||||
|
@ -166,6 +169,7 @@ lxc_count_processes () {
|
|||
return 0
|
||||
}
|
||||
|
||||
|
||||
# --- BASIC DEFINES
|
||||
|
||||
active_guests=$(active_guests $exclude)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue