Révision 4b2fcbf8
replace hard-coded paths (e.g. '/var/lib/munin/plugin-state') with '$MUNIN_PLUGSTATE'
see http://guide.munin-monitoring.org/en/latest/plugin/env.html
| plugins/bigbrother/b3error_ | ||
|---|---|---|
| 19 | 19 |
B3NAME=${0##*/b3error_}
|
| 20 | 20 |
LOGTAIL=${logtail:-`which logtail`}
|
| 21 | 21 |
#logfile from env |
| 22 |
STATEFILE=/var/lib/munin/plugin-state/${B3NAME}.offset
|
|
| 22 |
STATEFILE=$MUNIN_PLUGSTATE/${B3NAME}.offset
|
|
| 23 | 23 |
|
| 24 | 24 |
mktempfile () {
|
| 25 | 25 |
mktemp -t $1 |
| ... | ... | |
| 92 | 92 |
echo "parseline.value ${parseline}"
|
| 93 | 93 |
echo "other.value ${other}"
|
| 94 | 94 |
|
| 95 |
exit 0 |
|
| 95 |
exit 0 |
|
Formats disponibles : Unified diff