mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
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
This commit is contained in:
parent
a2b340a791
commit
4b2fcbf8b9
42 changed files with 45 additions and 51 deletions
|
@ -19,7 +19,7 @@
|
|||
B3NAME=${0##*/b3error_}
|
||||
LOGTAIL=${logtail:-`which logtail`}
|
||||
#logfile from env
|
||||
STATEFILE=/var/lib/munin/plugin-state/${B3NAME}.offset
|
||||
STATEFILE=$MUNIN_PLUGSTATE/${B3NAME}.offset
|
||||
|
||||
mktempfile () {
|
||||
mktemp -t $1
|
||||
|
@ -92,4 +92,4 @@ echo "eventqueue.value ${eventqueue}"
|
|||
echo "parseline.value ${parseline}"
|
||||
echo "other.value ${other}"
|
||||
|
||||
exit 0
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue