Projet

Général

Profil

Révision 4b2fcbf8

ID4b2fcbf8b9d8f995499353e0ab4195e724209a67
Parent a2b340a7
Enfant 57661e0f

Ajouté par Lars Kruse il y a plus de 8 ans

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

Voir les différences:

plugins/ftp/vsftpd-rel
25 25
#   env.logtail /usr/bin/logtail
26 26

  
27 27
PROGNAME=vsftpd
28
STATEDIR=/var/lib/munin/plugin-state
29 28

  
30 29
LOGFILE=${logfile:-/var/log/vsftpd.log}
31 30
LOGTAIL=${logtail:-`which logtail`}
32 31

  
33
OFFSET=${STATEDIR}/${PROGNAME}.offset
34
STATE=${STATEDIR}/${PROGNAME}.state
35
PIVOT=${STATEDIR}/${PROGNAME}.pivot
32
OFFSET=${MUNIN_PLUGSTATE}/${PROGNAME}.offset
33
STATE=${MUNIN_PLUGSTATE}/${PROGNAME}.state
34
PIVOT=${MUNIN_PLUGSTATE}/${PROGNAME}.pivot
36 35

  
37 36

  
38 37
install_ok()

Formats disponibles : Unified diff