diff --git a/centreon-plugins/src/traps/plugins/fill_trapDB b/centreon-plugins/src/traps/plugins/fill_trapDB index ff66e38af..c61006f95 100644 --- a/centreon-plugins/src/traps/plugins/fill_trapDB +++ b/centreon-plugins/src/traps/plugins/fill_trapDB @@ -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 "@CENTREON_PATH@/ODS/etc/conf.pm"; +require "@OREON_PATH@/ODS/etc/conf.pm"; ######################################### ## TEST IF OID ALREADY EXISTS IN DATABASE diff --git a/centreon-plugins/src/traps/plugins/genSnmpttConfFile b/centreon-plugins/src/traps/plugins/genSnmpttConfFile index 14d881bb5..715543579 100644 --- a/centreon-plugins/src/traps/plugins/genSnmpttConfFile +++ b/centreon-plugins/src/traps/plugins/genSnmpttConfFile @@ -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 "/srv/oreon/ODS/etc/conf.pm"; +require "@OREON_PATH@/ODS/etc/conf.pm"; ###################################### ## Get snmptt configuration files path diff --git a/centreon-plugins/src/traps/plugins/trapHandler b/centreon-plugins/src/traps/plugins/trapHandler index 3b3adcab5..2045882d7 100644 --- a/centreon-plugins/src/traps/plugins/trapHandler +++ b/centreon-plugins/src/traps/plugins/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 "/srv/oreon/ODS/etc/conf.pm"; +require "@OREON_PATH@/ODS/etc/conf.pm"; ############################### ## GET HOSTNAME FROM IP ADDRESS