Révision 784b06fe
Sections and small fix
| plugins/lxc/lxc-multigraph | ||
|---|---|---|
| 82 | 82 |
|
| 83 | 83 |
lxcpath=${lxcpath:-/var/lib/lxc}
|
| 84 | 84 |
|
| 85 |
# --- FUNCTIONS |
|
| 86 |
|
|
| 85 | 87 |
function active_guests {
|
| 86 | 88 |
local g active i ok |
| 87 | 89 |
for g in $(lxc-ls | sort -u) |
| ... | ... | |
| 161 | 163 |
return 0 |
| 162 | 164 |
} |
| 163 | 165 |
|
| 166 |
# --- BASIC DEFINES |
|
| 167 |
|
|
| 164 | 168 |
active_guests=$(active_guests $exclude) |
| 165 | 169 |
|
| 170 |
# --- AUTOCONF |
|
| 171 |
|
|
| 166 | 172 |
if [ "$1" = "autoconf" ]; then |
| 167 | 173 |
if [ ! -r /proc/net/dev ]; then |
| 168 | 174 |
echo "no (/proc/net/dev cannot be read)" |
| ... | ... | |
| 357 | 363 |
echo "multigraph lxc_proc" |
| 358 | 364 |
for n in $active_guests |
| 359 | 365 |
do |
| 360 |
count_processes "$n" |
|
| 366 |
lxc_count_processes "$n"
|
|
| 361 | 367 |
tmp=$? |
| 362 | 368 |
if [ $tmp -eq 0 ]; then |
| 363 | 369 |
tmp=$(lxc_cgroup -n "$n" tasks | wc -l) |
Formats disponibles : Unified diff