1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +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:
Lars Kruse 2017-04-18 23:32:55 +02:00
parent a2b340a791
commit 4b2fcbf8b9
42 changed files with 45 additions and 51 deletions

View file

@ -44,9 +44,8 @@
# ------------------------------------------------------------------------------------------------------
DENY="/etc/hosts.deny"
STATEDIR="/var/lib/munin/plugin-state" # directory where plugin can keep their working files
NAME="$(basename $0)" # component of naming temporary files
STATEFILE="$STATEDIR/$NAME.state"
STATEFILE="$MUNIN_PLUGSTATE/$NAME.state"
COLOUR=(FF0000 DA0024 B60048 91006D 6D0091 4800B6 2400DA 0000FF) # hot to cold colours
# ------------------------------------------------------------------------------------------------------