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/ftp/proftpd_count | ||
|---|---|---|
| 22 | 22 |
|
| 23 | 23 |
LOGFILE=${logfile:-/var/log/proftpd/xferlog}
|
| 24 | 24 |
LOGTAIL=${logtail:-`which logtail`}
|
| 25 |
STATEFILE=/var/lib/munin/plugin-state/xferlog-count.offset
|
|
| 25 |
STATEFILE=$MUNIN_PLUGSTATE/xferlog-count.offset
|
|
| 26 | 26 |
|
| 27 | 27 |
if [ "$1" = "autoconf" ]; then |
| 28 | 28 |
if [ -f "${LOGFILE}" -a -n "${LOGTAIL}" -a -x "${LOGTAIL}" ] ; then
|
Formats disponibles : Unified diff