1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 18:07:20 +00:00

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
This commit is contained in:
Lars Kruse 2017-04-18 23:32:55 +02:00
parent a2b340a791
commit 4b2fcbf8b9
42 changed files with 45 additions and 51 deletions

View file

@ -60,7 +60,7 @@ use Socket;
my $NTPQ = $ENV{ntpq} || "ntpq";
my $COMMAND = "$NTPQ -np";
my $statedir = $ENV{statedir} || '/var/lib/munin/plugin-state';
my $statedir = $ENV{statedir} || $ENV{MUNIN_PLUGSTATE};
my $statefile = "$statedir/ntp_peers.state";
# autoconf

View file

@ -46,7 +46,7 @@ use strict;
my $NTPQ = $ENV{ntpq} || "ntpq";
my $COMMAND = "$NTPQ -nc associations";
my $statedir = $ENV{statedir} || '/usr/local/var/munin/plugin-state';
my $statedir = $ENV{statedir} || $ENV{MUNIN_PLUGSTATE};
my $statefile = "$statedir/ntp_peers.state";
# autoconf