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/nginx/nginx_byprojects/byprojects_bandwidth | ||
|---|---|---|
| 32 | 32 |
|
| 33 | 33 |
my $server = 'Nginx'; |
| 34 | 34 |
|
| 35 |
my $statepath = '/usr/local/var/munin/plugin-state';
|
|
| 35 |
my $statepath = $ENV{MUNIN_PLUGSTATE};
|
|
| 36 | 36 |
my $logtail = '/usr/local/bin/logtail'; |
| 37 | 37 |
|
| 38 | 38 |
my %logs = ( |
Formats disponibles : Unified diff