From f7d3bb25de9863e68543fa4f6e2ab17e6c8dc7b9 Mon Sep 17 00:00:00 2001 From: Aron MEZEI Date: Thu, 24 Feb 2011 20:03:32 +0100 Subject: [PATCH] names now can have \. in the regexp and MUNIN_LIBDIR handled a bit better --- plugins/other/multimemory | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"