mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 11:29:12 +02:00
2007-08-23 Sancho Lerena <slerena@gmail.com>
* lib/PandoraFMS/Config.pm, bin/pandora_snmpconsole: Real fix for problem in snmplogfile. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@609 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9c6031ee0c
commit
84799432f8
@ -1,3 +1,8 @@
|
|||||||
|
2007-08-23 Sancho Lerena <slerena@gmail.com>
|
||||||
|
|
||||||
|
* lib/PandoraFMS/Config.pm, bin/pandora_snmpconsole: Real fix for problem in
|
||||||
|
snmplogfile.
|
||||||
|
|
||||||
2007-08-21 Sancho Lerena <slerena@gmail.com>
|
2007-08-21 Sancho Lerena <slerena@gmail.com>
|
||||||
|
|
||||||
* conf/pandora_server.conf: Final fixes for default file.
|
* conf/pandora_server.conf: Final fixes for default file.
|
||||||
|
@ -62,7 +62,7 @@ pandora_snmptrapd (\%pa_config);
|
|||||||
|
|
||||||
sub pandora_snmptrapd {
|
sub pandora_snmptrapd {
|
||||||
my $pa_config = $_[0];
|
my $pa_config = $_[0];
|
||||||
my $snmp_logfile = $pa_config->{'pandora_snmp_logfile'};
|
my $snmp_logfile = $pa_config->{'snmp_logfile'};
|
||||||
my $logfile_size; # Size of logfile, use for calculating index file
|
my $logfile_size; # Size of logfile, use for calculating index file
|
||||||
my @array;
|
my @array;
|
||||||
my $datos;
|
my $datos;
|
||||||
|
@ -138,7 +138,7 @@ sub pandora_loadconfig {
|
|||||||
$pa_config->{"dataserver"}=0;
|
$pa_config->{"dataserver"}=0;
|
||||||
$pa_config->{"reconserver"}=0;
|
$pa_config->{"reconserver"}=0;
|
||||||
$pa_config->{"servermode"}="";
|
$pa_config->{"servermode"}="";
|
||||||
$pa_config->{'pandora_snmp_logfile'}="/var/log/pandora_snmptrap.log";
|
$pa_config->{'snmp_logfile'}="/var/log/pandora/pandora_snmptrap.log";
|
||||||
$pa_config->{"network_threads"}=5; # Fixed default
|
$pa_config->{"network_threads"}=5; # Fixed default
|
||||||
$pa_config->{"keepalive"}=60; # 60 Seconds initially for server keepalive
|
$pa_config->{"keepalive"}=60; # 60 Seconds initially for server keepalive
|
||||||
$pa_config->{"keepalive_orig"} = $pa_config->{"keepalive"};
|
$pa_config->{"keepalive_orig"} = $pa_config->{"keepalive"};
|
||||||
@ -205,7 +205,7 @@ sub pandora_loadconfig {
|
|||||||
$pa_config->{"errorlogfile"} = $tbuf;
|
$pa_config->{"errorlogfile"} = $tbuf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif ($parametro =~ m/^snmp_logfile\s(.*)/i) { $pa_config->{'pandora_snmp_logfile'}= $1; }
|
elsif ($parametro =~ m/^snmp_logfile\s(.*)/i) { $pa_config->{'snmp_logfile'}= $1; }
|
||||||
elsif ($parametro =~ m/^dbname\s(.*)/i) { $pa_config->{'dbname'}= $1; }
|
elsif ($parametro =~ m/^dbname\s(.*)/i) { $pa_config->{'dbname'}= $1; }
|
||||||
elsif ($parametro =~ m/^dbuser\s(.*)/i) { $pa_config->{'dbuser'}= $1; }
|
elsif ($parametro =~ m/^dbuser\s(.*)/i) { $pa_config->{'dbuser'}= $1; }
|
||||||
elsif ($parametro =~ m/^dbpass\s(.*)/i) { $pa_config->{'dbpass'}= $1; }
|
elsif ($parametro =~ m/^dbpass\s(.*)/i) { $pa_config->{'dbpass'}= $1; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user