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/postfix/postgrey-new | ||
|---|---|---|
| 29 | 29 |
use warnings; |
| 30 | 30 |
|
| 31 | 31 |
my $maillog= $ENV{'logfile'} || "/var/log/mail.log";
|
| 32 |
my $statefile= $ENV{'statefile'} || "/var/lib/munin/plugin-state/postgrey-new.state";
|
|
| 32 |
my $statefile= $ENV{'statefile'} || "$ENV{MUNIN_PLUGSTATE}/postgrey-new.state";
|
|
| 33 | 33 |
|
| 34 | 34 |
my $greylisted=0; |
| 35 | 35 |
my $greylisted_old=0; |
Formats disponibles : Unified diff