From 4c2e2de6b54ac911e67631fa9fbf95e504fa6eec Mon Sep 17 00:00:00 2001 From: Julien Mathis Date: Tue, 2 Nov 2010 12:03:34 +0000 Subject: [PATCH] fix #1401 git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@11004 6bcd3966-0018-0410-8128-fd23d134de7e --- centreon-plugins/src/centreon.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/centreon-plugins/src/centreon.pm b/centreon-plugins/src/centreon.pm index 42a41516d..ca89a91db 100644 --- a/centreon-plugins/src/centreon.pm +++ b/centreon-plugins/src/centreon.pm @@ -61,14 +61,13 @@ our @ISA = qw(Exporter); our @EXPORT_OK = qw(get_parameters); our @EXPORT = @EXPORT_OK; -my $params_file = "centreon.conf"; +my $params_file = "@NAGIOS_PLUGINS@/centreon.conf"; my @ds = ("a","b","c","d","e","f","g","h","i","j","k","l"); ############################################################################### # Get all parameters from the ini file ############################################################################### sub get_parameters { - $params_file = "@NAGIOS_PLUGINS@/$params_file"; unless (-e $params_file) { print "Unknown - In centreon.pm :: $params_file :: $!\n"; exit $ERRORS{'UNKNOWN'};