git-svn-id: http://svn.centreon.com/Plugins/Dev@2527 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Mat Sugumaran 2007-06-26 09:06:26 +00:00
parent c73683f8c8
commit c4ccd6998e
3 changed files with 5 additions and 5 deletions

View File

@ -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 "/srv/oreon/ODS/etc/conf.pm";
#########################################
## TEST IF OID ALREADY EXISTS IN DATABASE

View File

@ -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 "/srv/oreon/ODS/etc/conf.pm";
######################################
## Get snmptt configuration files path
@ -77,7 +77,7 @@ sub main() {
if (defined($values[3])) {
print FILE "FORMAT ".$values[3]."\n";
}
print FILE "EXEC ".$NAGIOS_TRAPS."/trapHandler \$aA \$o \"\$*\|\"\n";
print FILE "EXEC ".$NAGIOS_TRAPS."/trapHandler \$aA \$o \"\$*\"\n";
if (defined($values[4])) {
print FILE "SDESC\n".$values[4];
if ($values[4] =~ /\n$/) {

View File

@ -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 "/srv/oreon/ODS/etc/conf.pm";
###############################
## GET HOSTNAME FROM IP ADDRESS
@ -112,7 +112,7 @@ sub getTrapsInfos($$$){
$sth->execute();
my @conf = $sth->fetchrow_array();
$sth->finish();
my $submit = `/bin/echo "[$datetime] PROCESS_SERVICE_CHECK_RESULT;$this_host;$this_service;$status;$arguments_line" >> $conf[0]`;
my $submit = `/bin/echo "[$datetime] PROCESS_SERVICE_CHECK_RESULT;$this_host;$this_service;$status;$argument" >> $conf[0]`;
}
}
$dbh->disconnect();