From 07f86047479ea516b8f3e01b321a211895d79104 Mon Sep 17 00:00:00 2001 From: Mat Sugumaran Date: Wed, 27 Jun 2007 14:43:29 +0000 Subject: [PATCH] @CENTREON_PATH@ macro added git-svn-id: http://svn.centreon.com/Plugins/Dev@2545 6bcd3966-0018-0410-8128-fd23d134de7e --- centreon-plugins/src/traps/fill_trapDB | 2 +- centreon-plugins/src/traps/genSnmpttConfFile | 2 +- centreon-plugins/src/traps/trapHandler | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/centreon-plugins/src/traps/fill_trapDB b/centreon-plugins/src/traps/fill_trapDB index 702a7641d..ff66e38af 100644 --- a/centreon-plugins/src/traps/fill_trapDB +++ b/centreon-plugins/src/traps/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 "/srv/oreon/ODS/etc/conf.pm"; +require "@CENTREON_PATH@/ODS/etc/conf.pm"; ######################################### ## TEST IF OID ALREADY EXISTS IN DATABASE diff --git a/centreon-plugins/src/traps/genSnmpttConfFile b/centreon-plugins/src/traps/genSnmpttConfFile index cb97966cc..b913f1677 100644 --- a/centreon-plugins/src/traps/genSnmpttConfFile +++ b/centreon-plugins/src/traps/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 "@CENTREON_PATH@/ODS/etc/conf.pm"; ###################################### ## Get snmptt configuration files path diff --git a/centreon-plugins/src/traps/trapHandler b/centreon-plugins/src/traps/trapHandler index d2091a461..285a1e67d 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 "/srv/oreon/ODS/etc/conf.pm"; +require "@CENTREON_PATH@/ODS/etc/conf.pm"; ############################### ## GET HOSTNAME FROM IP ADDRESS