diff --git a/plugins/system/cpubyuser b/plugins/system/cpubyuser index 2931962c..0f7a2cc3 100755 --- a/plugins/system/cpubyuser +++ b/plugins/system/cpubyuser @@ -2,12 +2,12 @@ # # Plugin to monitor CPU usage, for a selected set of users # -# Usage: Place in /etc/munin/node.d/ (or link it there using ln -s) -# Add this to your /etc/munin/plugin-conf.d/munin-node: +# Usage: Place in /etc/munin/node.d/ (or link it there using ln -s) +# Add this to your /etc/munin/plugin-conf.d/munin-node: # [cpubyuser] # env.USERS root yann # -# If env.USERS is set to ALL, count all logged in users. +# If env.USERS is set to ALL, count all logged in users. # # root and yann being a list of the users to monitor. # You need to also make sure that awk is installed @@ -30,8 +30,8 @@ # # Parameters understood: # -# config (required) -# autoconf (optional - used by munin-config) +# config (required) +# autoconf (optional - used by munin-config) # #%# family=auto @@ -63,7 +63,7 @@ if [ "$1" = "config" ]; then user_fields="$(for user in $USERS; do clean_fieldname "$user" | tr '\n' ' '; done)" echo "graph_order $user_fields $OTHER_FIELD" for user in $USERS "$OTHER_FIELD"; do - user_field="$(clean_fieldname "$user")" + user_field="$(clean_fieldname "$user")" echo "${user_field}.label $user" echo "${user_field}.info CPU used by user $user" echo "${user_field}.type GAUGE"