mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
[cpubyuser] clear variable names
This commit is contained in:
parent
a465880501
commit
002e8bbf99
1 changed files with 8 additions and 8 deletions
|
@ -56,14 +56,14 @@ if [ "$1" = "config" ]; then
|
||||||
echo "graph_vlabel %"
|
echo "graph_vlabel %"
|
||||||
echo "graph_scale no"
|
echo "graph_scale no"
|
||||||
echo "graph_period second"
|
echo "graph_period second"
|
||||||
_USERS="$(for user in $USERS; do clean_fieldname "$user" | tr '\n' ' '; done)"
|
user_fields="$(for user in $USERS; do clean_fieldname "$user" | tr '\n' ' '; done)"
|
||||||
echo "graph_order $_USERS others"
|
echo "graph_order $user_fields others"
|
||||||
for USER in $USERS "others"; do
|
for user in $USERS "others"; do
|
||||||
_USER="$(clean_fieldname "$USER")"
|
user_field="$(clean_fieldname "$user")"
|
||||||
echo "${_USER}.label $USER"
|
echo "${user_field}.label $user"
|
||||||
echo "${_USER}.info CPU used by user $USER"
|
echo "${user_field}.info CPU used by user $user"
|
||||||
echo "${_USER}.type GAUGE"
|
echo "${user_field}.type GAUGE"
|
||||||
echo "${_USER}.draw AREASTACK"
|
echo "${user_field}.draw AREASTACK"
|
||||||
done
|
done
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue