Révision f7d3bb25
names now can have \. in the regexp and MUNIN_LIBDIR handled a bit better
| 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