1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41: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:
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

@ -22,7 +22,7 @@ mktemp -t $1
LOGFILE=${logfile:-/var/log/proftpd/xferlog}
LOGTAIL=${logtail:-`which logtail`}
STATEFILE=/var/lib/munin/plugin-state/xferlog-bytes.offset
STATEFILE=$MUNIN_PLUGSTATE/xferlog-bytes.offset
if [ "$1" = "autoconf" ]; then
if [ -f "${LOGFILE}" -a -n "${LOGTAIL}" -a -x "${LOGTAIL}" ] ; then

View file

@ -22,7 +22,7 @@ mktemp -t $1
LOGFILE=${logfile:-/var/log/proftpd/xferlog}
LOGTAIL=${logtail:-`which logtail`}
STATEFILE=/var/lib/munin/plugin-state/xferlog-count.offset
STATEFILE=$MUNIN_PLUGSTATE/xferlog-count.offset
if [ "$1" = "autoconf" ]; then
if [ -f "${LOGFILE}" -a -n "${LOGTAIL}" -a -x "${LOGTAIL}" ] ; then

View file

@ -32,7 +32,7 @@
LOGFILE=/var/log/pure-ftpd/transfer.log
LOGTAIL=$(which logtail)
OFFSET_FILE=/var/lib/munin/plugin-state/pure-ftpd-bw.offset
OFFSET_FILE=$MUNIN_PLUGSTATE/pure-ftpd-bw.offset
if [ "$1" = "autoconf" ]; then

View file

@ -22,7 +22,7 @@
LOGFILE=/var/log/syslog
LOGTAIL=$(which logtail)
OFFSET_FILE=/var/lib/munin/plugin-state/pure-ftpd-conns.offset
OFFSET_FILE=$MUNIN_PLUGSTATE/pure-ftpd-conns.offset
if [ "$1" = "autoconf" ]; then

View file

@ -25,14 +25,13 @@
# env.logtail /usr/bin/logtail
PROGNAME=vsftpd
STATEDIR=/var/lib/munin/plugin-state
LOGFILE=${logfile:-/var/log/vsftpd.log}
LOGTAIL=${logtail:-`which logtail`}
OFFSET=${STATEDIR}/${PROGNAME}.offset
STATE=${STATEDIR}/${PROGNAME}.state
PIVOT=${STATEDIR}/${PROGNAME}.pivot
OFFSET=${MUNIN_PLUGSTATE}/${PROGNAME}.offset
STATE=${MUNIN_PLUGSTATE}/${PROGNAME}.state
PIVOT=${MUNIN_PLUGSTATE}/${PROGNAME}.pivot
install_ok()