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/amavis/amavis-debian | ||
|---|---|---|
| 18 | 18 |
# |
| 19 | 19 |
# Config variables: |
| 20 | 20 |
# AMAVIS_LOG - file where amavis logs are written |
| 21 |
# STATEFILE - file which is needed to keep track of AMAVIS_LOG |
|
| 22 | 21 |
# LOGTAIL - location of logtail |
| 23 | 22 |
# BC - location of bc |
| 24 | 23 |
# |
| ... | ... | |
| 27 | 26 |
# |
| 28 | 27 |
|
| 29 | 28 |
AMAVIS_LOG=${logfile:-/var/log/mail.log}
|
| 30 |
STATEFILE=/var/lib/munin/plugin-state/amavis.offset
|
|
| 29 |
STATEFILE=$MUNIN_PLUGSTATE/amavis.offset
|
|
| 31 | 30 |
LOGTAIL=${logtail:-`which logtail`}
|
| 32 | 31 |
BC=${bc:-`which bc`}
|
| 33 | 32 |
|
Formats disponibles : Unified diff