full path for monitorix.conf.path

This commit is contained in:
Andy Rabagliati 2019-01-16 10:22:36 +02:00
parent ea82cfd825
commit f843f631fc
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@
use strict;
use warnings;
use File::Basename;
use FindBin qw($Bin);
use lib $Bin . "/lib", "/usr/lib/monitorix";
@ -236,7 +237,7 @@ sub graph_footer {
# MAIN
# ----------------------------------------------------------------------------
open(IN, "< monitorix.conf.path");
open(IN, dirname(__FILE__)."/monitorix.conf.path");
my $config_path = <IN>;
chomp($config_path);
close(IN);