diff --git a/plugins/other/multimemory b/plugins/other/multimemory index 7b48202c..1227e7fb 100755 --- a/plugins/other/multimemory +++ b/plugins/other/multimemory @@ -59,6 +59,10 @@ GPLv2 =cut +if [ -z "$MUNIN_LIBDIR" ]; then + MUNIN_LIBDIR="`dirname $(dirname "$0")`" +fi + . $MUNIN_LIBDIR/plugins/plugin.sh if [ "$1" = "autoconf" ]; then @@ -77,7 +81,7 @@ if [ "$1" = "config" ]; then echo 'graph_args --base 1024 --vertical-label memory -l 0' for name in $names; do fieldname=$(clean_fieldname $name) - eval REGEX='"${regex_'$name'-\<'$name'\>}"' + REGEX='\<'"$name"'\>' echo "$fieldname.label $name" echo "$fieldname.draw LINE2"