Projet

Général

Profil

Révision f7d3bb25

IDf7d3bb25de9863e68543fa4f6e2ab17e6c8dc7b9
Parent 48d917a5
Enfant e9f00b9d

Ajouté par Aron MEZEI il y a presque 14 ans

names now can have \. in the regexp and MUNIN_LIBDIR handled a bit better

Voir les différences:

plugins/other/multimemory
59 59

  
60 60
=cut
61 61

  
62
if [ -z "$MUNIN_LIBDIR" ]; then
63
	MUNIN_LIBDIR="`dirname $(dirname "$0")`"
64
fi
65

  
62 66
. $MUNIN_LIBDIR/plugins/plugin.sh
63 67

  
64 68
if [ "$1" = "autoconf" ]; then
......
77 81
	echo 'graph_args --base 1024 --vertical-label memory -l 0'
78 82
	for name in $names; do
79 83
	    	fieldname=$(clean_fieldname $name)
80
		eval REGEX='"${regex_'$name'-\<'$name'\>}"'
84
	    	REGEX='\<'"$name"'\>'
81 85

  
82 86
		echo "$fieldname.label $name"
83 87
		echo "$fieldname.draw LINE2"

Formats disponibles : Unified diff