git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@11004 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Julien Mathis 2010-11-02 12:03:34 +00:00
parent ec53d6816e
commit 4c2e2de6b5
1 changed files with 1 additions and 2 deletions

View File

@ -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'};