1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

Add configuration option for logtail path

This commit is contained in:
Neraud 2017-07-08 09:16:07 +02:00
parent 92a8c9df17
commit 3a17b22edf
4 changed files with 18 additions and 5 deletions

View file

@ -29,11 +29,15 @@ use strict;
# Test graph will be using everything file matching /home/test/log/access*.log
# and stuff that match the expression '"[A-Z] /test/' in /var/log/access.log
# such as '"GET /test/'
#
# Configuration
# [byprojects_*]
# env.logtail_path /usr/local/bin/logtail
my $server = 'Nginx';
my $statepath = $ENV{MUNIN_PLUGSTATE};
my $logtail = '/usr/local/bin/logtail';
my $logtail = $ENV{logtail_path} || '/usr/local/bin/logtail';
my %logs = (
'prod' => [