Révision 4b2fcbf8
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
| 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