mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Add support for Ubuntu 14.04
This commit is contained in:
parent
5dc3787f00
commit
1c917e64b0
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,7 @@ Unknown license
|
|||
# Ubuntu 12.04 with fstab: /sys/fs/cgroup/lxc/<container>/tasks
|
||||
# Ubuntu 12.04 with cgroup-lite: /sys/fs/cgroup/cpuacct/lxc/<container>/tasks
|
||||
# Ubuntu 12.04 with cgroup-bin: /sys/fs/cgroup/cpuacct/sysdefault/lxc/<container>/tasks
|
||||
# Ubuntu 14.04: /sys/fs/cgroup/systemd/lxc/<container>/tasks
|
||||
count_processes () {
|
||||
[ -z "$1" ] && return 0
|
||||
|
||||
|
@ -54,6 +55,7 @@ count_processes () {
|
|||
for SYSFS in \
|
||||
/sys/fs/cgroup/$1/tasks \
|
||||
/sys/fs/cgroup/lxc/$1/tasks \
|
||||
/sys/fs/cgroup/systemd/lxc/$1/tasks \
|
||||
/sys/fs/cgroup/cpuacct/lxc/$1/tasks \
|
||||
/sys/fs/cgroup/cpuacct/sysdefault/lxc/$1/tasks \
|
||||
; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue