diff --git a/centreon-plugins/src/traps/fill_trapDB.pl b/centreon-plugins/src/traps/fill_trapDB.pl index ecb0eaa39..85e7982f1 100644 --- a/centreon-plugins/src/traps/fill_trapDB.pl +++ b/centreon-plugins/src/traps/fill_trapDB.pl @@ -29,7 +29,7 @@ use Getopt::Long; use DBI; use vars qw($mysql_database_oreon $mysql_database_ods $mysql_host $mysql_user $mysql_passwd); -require "@OREON_PATH@/ODS/etc/conf.pm"; +require "@INSTALL_DIR_OREON@/ODS/etc/conf.pm"; ######################################### ## TEST IF OID ALREADY EXISTS IN DATABASE diff --git a/centreon-plugins/src/traps/genSnmpttConfFile.pl b/centreon-plugins/src/traps/genSnmpttConfFile.pl index f23d18882..3492af70a 100644 --- a/centreon-plugins/src/traps/genSnmpttConfFile.pl +++ b/centreon-plugins/src/traps/genSnmpttConfFile.pl @@ -29,7 +29,7 @@ use Getopt::Long; use DBI; use vars qw($mysql_database_oreon $mysql_database_ods $mysql_host $mysql_user $mysql_passwd); -require "@OREON_PATH@/ODS/etc/conf.pm"; +require "@INSTALL_DIR_OREON@/ODS/etc/conf.pm"; ###################################### ## Get snmptt configuration files path diff --git a/centreon-plugins/src/traps/trapHandler b/centreon-plugins/src/traps/trapHandler index 7e7ae2ab8..2ad8c1c48 100644 --- a/centreon-plugins/src/traps/trapHandler +++ b/centreon-plugins/src/traps/trapHandler @@ -28,7 +28,7 @@ use strict; use DBI; use vars qw($mysql_database_oreon $mysql_database_ods $mysql_host $mysql_user $mysql_passwd); -require "@OREON_PATH@/ODS/etc/conf.pm"; +require "@INSTALL_DIR_OREON@/ODS/etc/conf.pm"; ############################### ## GET HOSTNAME FROM IP ADDRESS