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/ntp/ntp_peers | ||
|---|---|---|
| 60 | 60 |
my $NTPQ = $ENV{ntpq} || "ntpq";
|
| 61 | 61 |
my $COMMAND = "$NTPQ -np"; |
| 62 | 62 |
|
| 63 |
my $statedir = $ENV{statedir} || '/var/lib/munin/plugin-state';
|
|
| 63 |
my $statedir = $ENV{statedir} || $ENV{MUNIN_PLUGSTATE};
|
|
| 64 | 64 |
my $statefile = "$statedir/ntp_peers.state"; |
| 65 | 65 |
|
| 66 | 66 |
# autoconf |
Formats disponibles : Unified diff