1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 02:18:08 +00:00

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

This commit is contained in:
Aron MEZEI 2011-02-24 20:03:32 +01:00 committed by Steve Schnepp
parent 48d917a50b
commit f7d3bb25de

View file

@ -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"