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/rsync/rsyncd_bytes | ||
|---|---|---|
| 16 | 16 |
|
| 17 | 17 |
RSYNCD_LOG=${logfile:-/var/log/rsyncd.log}
|
| 18 | 18 |
LOGTAIL=${logtail:-`which logtail`}
|
| 19 |
STATEFILE=/var/lib/munin/plugin-state/rsync-bytes.offset
|
|
| 19 |
STATEFILE=$MUNIN_PLUGSTATE/rsync-bytes.offset
|
|
| 20 | 20 |
|
| 21 | 21 |
if [ "$1" = "autoconf" ]; then |
| 22 | 22 |
if [ -f "${RSYNCD_LOG}" -a -n "${LOGTAIL}" -a -x "${LOGTAIL}" ] ; then
|
Formats disponibles : Unified diff