Projet

Général

Profil

Révision 391a4bfa

ID391a4bfa416540a1e2aff48b6e296b595805d9d3
Parent 4b21d581
Enfant 5bec8ec6

Ajouté par Lars Kruse il y a environ 9 ans

[cpubyuser] user constant for magic 'others' user

Voir les différences:

plugins/system/cpubyuser
39 39

  
40 40
. "$MUNIN_LIBDIR/plugins/plugin.sh"
41 41

  
42
OTHER_FIELD="others"
42 43
[ "$USERS" = "ALL" ] && USERS=$(w --no-header | awk '{ print $1 }' | sort | uniq)
43 44

  
44 45

  
......
60 61
	echo "graph_scale no"
61 62
	echo "graph_period second"
62 63
	user_fields="$(for user in $USERS; do clean_fieldname "$user" | tr '\n' ' '; done)"
63
	echo "graph_order $user_fields others"
64
	for user in $USERS "others"; do
64
	echo "graph_order $user_fields $OTHER_FIELD"
65
	for user in $USERS "$OTHER_FIELD"; do
65 66
	        user_field="$(clean_fieldname "$user")"
66 67
		echo "${user_field}.label $user"
67 68
		echo "${user_field}.info CPU used by user $user"

Formats disponibles : Unified diff