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/mail/procmail_
6 6
my (%conf, $state, $have_read, $totlines);
7 7

  
8 8
%conf = (logfile => $ENV{LOGFILE} || '/home/user/.procmail/log',
9
	 state => $ENV{STATEFILE} || '/var/lib/munin/plugin-state/munin-plugin-procmail.state');
9
	 state => $ENV{STATEFILE} || "$ENV{MUNIN_PLUGSTATE}/munin-plugin-procmail.state");
10 10

  
11 11
$state = YAML::LoadFile($conf{state});
12 12
$have_read = 0;

Formats disponibles : Unified diff