mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +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:
parent
a2b340a791
commit
4b2fcbf8b9
42 changed files with 45 additions and 51 deletions
|
@ -39,7 +39,7 @@ my $logfile = $ENV{logfile} || "/var/log/app/jvm/gc.log";
|
|||
my $grtitle = $ENV{graphtitle} || 'Sun Java';
|
||||
my $grname = $ENV{graphtitle} || 'sun-jvm';
|
||||
|
||||
my $statefile = "/var/lib/munin/plugin-state/plugin-java_sun_${grname}_minorgcs.state";
|
||||
my $statefile = "$ENV{MUNIN_PLUGSTATE}/plugin-java_sun_${grname}_minorgcs.state";
|
||||
my $pos = 0;
|
||||
my $count = 0;
|
||||
my $seconds = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue