mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
lxc_guests: Make it work with unpriviliged containers
This commit is contained in:
parent
8a9bd01346
commit
b5f957268f
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ get_lxc_cgroup_info() {
|
||||||
local guest_name="$1"
|
local guest_name="$1"
|
||||||
local field="$2"
|
local field="$2"
|
||||||
# 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 -n "$guest_name" "$field" | sed 's/^.*lxc_cgroup.c:main:[0-9][0-9]* - //'
|
lxc-cgroup -o /dev/stdout -l INFO -n "$guest_name" "$field" | sed 's/^.*lxc_cgroup.c:main:[0-9][0-9]* - //' | grep -v set_config_idmaps
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue