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:
parent
48d917a50b
commit
f7d3bb25de
1 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue