From e21a5e040fa48c1a196fbf9fc8b85f94c8fb2b59 Mon Sep 17 00:00:00 2001 From: Mat Sugumaran Date: Mon, 9 Jul 2007 15:55:21 +0000 Subject: [PATCH] OREON_PATH macro added git-svn-id: http://svn.centreon.com/Plugins/Dev@2635 6bcd3966-0018-0410-8128-fd23d134de7e --- centreon-plugins/src/traps/plugins/fill_trapDB | 2 +- centreon-plugins/src/traps/plugins/genSnmpttConfFile | 2 +- centreon-plugins/src/traps/plugins/trapHandler | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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