1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

[cpubyuser] fix whitespace

This commit is contained in:
Lars Kruse 2016-10-22 04:02:49 +02:00
parent 8280dbb0f5
commit 85d91b50f4

View file

@ -2,12 +2,12 @@
# #
# Plugin to monitor CPU usage, for a selected set of users # 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) # 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: # Add this to your /etc/munin/plugin-conf.d/munin-node:
# [cpubyuser] # [cpubyuser]
# env.USERS root yann # 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. # root and yann being a list of the users to monitor.
# You need to also make sure that awk is installed # You need to also make sure that awk is installed
@ -30,8 +30,8 @@
# #
# Parameters understood: # Parameters understood:
# #
# config (required) # config (required)
# autoconf (optional - used by munin-config) # autoconf (optional - used by munin-config)
# #
#%# family=auto #%# family=auto
@ -63,7 +63,7 @@ if [ "$1" = "config" ]; then
user_fields="$(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 $user_fields $OTHER_FIELD" echo "graph_order $user_fields $OTHER_FIELD"
for user in $USERS "$OTHER_FIELD"; do 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}.label $user"
echo "${user_field}.info CPU used by user $user" echo "${user_field}.info CPU used by user $user"
echo "${user_field}.type GAUGE" echo "${user_field}.type GAUGE"