mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -41,7 +41,7 @@ for guest in $guest_names; do
|
|||
fi
|
||||
done
|
||||
guest_names="$active"
|
||||
|
||||
|
||||
|
||||
|
||||
f_comm='lxc-cgroup '
|
||||
|
@ -63,9 +63,8 @@ if [ "$1" = "config" ]; then
|
|||
echo 'graph_vlabel USER_HZ'
|
||||
echo 'graph_category cpu'
|
||||
|
||||
|
||||
for guest_name in $guest_names;
|
||||
do
|
||||
|
||||
for guest_name in $guest_names; do
|
||||
guest="$(clean_fieldname $guest_name)"
|
||||
echo 'cpu_user_'$guest'.label '$guest_name': User'
|
||||
echo 'cpu_user_'$guest'.type DERIVE'
|
||||
|
@ -77,14 +76,13 @@ if [ "$1" = "config" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
for guest_name in $guest_names;
|
||||
do
|
||||
for guest_name in $guest_names; do
|
||||
guest="$(clean_fieldname $guest_name)"
|
||||
|
||||
|
||||
tmp_g=`$f_comm -n $guest_name cpuacct.stat | grep user`
|
||||
tmp_v=`echo $tmp_g | awk '{print($2)}'`
|
||||
echo 'cpu_user_'$guest'.value '$tmp_v
|
||||
|
||||
|
||||
tmp_g=`$f_comm -n $guest_name cpuacct.stat | grep system`
|
||||
tmp_v=`echo $tmp_g | awk '{print($2)}'`
|
||||
echo 'cpu_system_'$guest'.value '$tmp_v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue