2009-10-16 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Do not process disabled modules. * bin/pandora_server: Start logging before trying to connect to the DB. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2026 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
017f3305aa
commit
c97018a446
|
@ -1,3 +1,9 @@
|
||||||
|
2009-10-16 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* lib/PandoraFMS/DataServer.pm: Do not process disabled modules.
|
||||||
|
|
||||||
|
* bin/pandora_server: Start logging before trying to connect to the DB.
|
||||||
|
|
||||||
2009-10-16 Sancho Lerena <slerena@artica.es>
|
2009-10-16 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/Core.pm: Keepalive was not working properly. Keepalive
|
* lib/PandoraFMS/Core.pm: Keepalive was not working properly. Keepalive
|
||||||
|
|
|
@ -60,15 +60,15 @@ sub pandora_shutdown () {
|
||||||
########################################################################################
|
########################################################################################
|
||||||
sub pandora_startup () {
|
sub pandora_startup () {
|
||||||
|
|
||||||
|
# Start logging
|
||||||
|
pandora_start_log (\%Config);
|
||||||
|
|
||||||
# Connect to the DB
|
# Connect to the DB
|
||||||
$DBH = db_connect ('mysql', $Config{'dbname'}, $Config{'dbhost'}, 3306,
|
$DBH = db_connect ('mysql', $Config{'dbname'}, $Config{'dbhost'}, 3306,
|
||||||
$Config{'dbuser'}, $Config{'dbpass'});
|
$Config{'dbuser'}, $Config{'dbpass'});
|
||||||
|
|
||||||
pandora_audit (\%Config, 'Pandora FMS Server Daemon starting', 'SYSTEM', 'System', $DBH);
|
pandora_audit (\%Config, 'Pandora FMS Server Daemon starting', 'SYSTEM', 'System', $DBH);
|
||||||
|
|
||||||
# Start logging
|
|
||||||
pandora_start_log (\%Config);
|
|
||||||
|
|
||||||
# Load servers
|
# Load servers
|
||||||
pandora_reset_server (\%Config, $DBH);
|
pandora_reset_server (\%Config, $DBH);
|
||||||
push (@Servers, new PandoraFMS::DataServer (\%Config, $DBH));
|
push (@Servers, new PandoraFMS::DataServer (\%Config, $DBH));
|
||||||
|
|
|
@ -274,6 +274,9 @@ sub process_module_data ($$$$$$$$$) {
|
||||||
return unless defined $module;
|
return unless defined $module;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Module disabled!
|
||||||
|
return if ($module->{'disabled'} eq '1');
|
||||||
|
|
||||||
# Parse the timestamp and process the module
|
# Parse the timestamp and process the module
|
||||||
if ($timestamp =~ /(\d+)\/(\d+)\/(\d+) +(\d+):(\d+):(\d+)/ ||
|
if ($timestamp =~ /(\d+)\/(\d+)\/(\d+) +(\d+):(\d+):(\d+)/ ||
|
||||||
$timestamp =~ /(\d+)\-(\d+)\-(\d+) +(\d+):(\d+):(\d+)/) {
|
$timestamp =~ /(\d+)\-(\d+)\-(\d+) +(\d+):(\d+):(\d+)/) {
|
||||||
|
|
Loading…
Reference in New Issue