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/nginx/nginx_vhost_traffic
33 33
LOGDIR=${logdir:-/var/log/nginx}
34 34
ACCESS_LOG=$LOGDIR/${logfile:-access.log}
35 35
LOGTAIL=${logtail:-`which logtail`}
36
STATEFILE=/var/lib/munin/plugin-state/nginx_vhost_traffic.state
36
STATEFILE=$MUNIN_PLUGSTATE/nginx_vhost_traffic.state
37 37
VHOSTS=${vhosts:-`hostname`}
38 38
AGGREGATE=${aggregate:true}
39 39

  

Formats disponibles : Unified diff