1
0
Fork 0
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:
Lars Kruse 2019-08-11 23:31:16 +02:00
parent c0fe6dc3c7
commit 6696a4d894

View file

@ -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)