1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +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 echo $active
} }
function lxc_cgroup { function lxc_cgroup {
# lxc3 (lxc < 3: may output some warnings if there is cruft in your config dir) # 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]* - //' lxc-cgroup -o /dev/stdout -l INFO $* | sed 's/^.*lxc_cgroup.c:main:[0-9][0-9]* - //'
} }
function lxc_netdev { function lxc_netdev {
local g=$1 dev local g=$1 dev
@ -128,6 +130,7 @@ function lxc_netdev {
fi fi
} }
# find proper sysfs and count it # find proper sysfs and count it
# Debian 6.0: /sys/fs/cgroup/<container>/tasks # Debian 6.0: /sys/fs/cgroup/<container>/tasks
# Ubuntu 12.04 with fstab: /sys/fs/cgroup/lxc/<container>/tasks # Ubuntu 12.04 with fstab: /sys/fs/cgroup/lxc/<container>/tasks
@ -166,6 +169,7 @@ lxc_count_processes () {
return 0 return 0
} }
# --- BASIC DEFINES # --- BASIC DEFINES
active_guests=$(active_guests $exclude) active_guests=$(active_guests $exclude)