mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51: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
|
@ -16,7 +16,7 @@ mktemp -t $1
|
|||
|
||||
RSYNCD_LOG=${logfile:-/var/log/rsyncd.log}
|
||||
LOGTAIL=${logtail:-`which logtail`}
|
||||
STATEFILE=/var/lib/munin/plugin-state/rsync-bytes.offset
|
||||
STATEFILE=$MUNIN_PLUGSTATE/rsync-bytes.offset
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
if [ -f "${RSYNCD_LOG}" -a -n "${LOGTAIL}" -a -x "${LOGTAIL}" ] ; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue