1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +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
#
# 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"