mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
2013-02-28 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/PluginServer.pm: Removed several "Use of uninitialized value in string" errors. * lib/PandoraFMS/Core.pm: Fixed more ugly notices due uninitialized vars. * util/recon_scripts/snmpdevices.pl: Fixed due new interface. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7755 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
ffe4173ee9
commit
38cd6399c0
@ -8,6 +8,10 @@
|
|||||||
* lib/PandoraFMS/PluginServer.pm: Removed several "Use of uninitialized i
|
* lib/PandoraFMS/PluginServer.pm: Removed several "Use of uninitialized i
|
||||||
value in string" errors.
|
value in string" errors.
|
||||||
|
|
||||||
|
* lib/PandoraFMS/Core.pm: Fixed more ugly notices due uninitialized vars.
|
||||||
|
|
||||||
|
* util/recon_scripts/snmpdevices.pl: Fixed due new interface.
|
||||||
|
|
||||||
2013-02-28 Ramon Novoa <rnovoa@artica.es>
|
2013-02-28 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* bin/pandora_server: Undid the previous commit since forking after
|
* bin/pandora_server: Undid the previous commit since forking after
|
||||||
|
@ -1058,6 +1058,11 @@ sub pandora_process_module ($$$$$$$$$;$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $last_try = ($1 == 0) ? 0 : timelocal($6, $5, $4, $3, $2 - 1, $1 - 1900);
|
my $last_try = ($1 == 0) ? 0 : timelocal($6, $5, $4, $3, $2 - 1, $1 - 1900);
|
||||||
|
|
||||||
|
if (!defined($agent_status->{'datos'})){
|
||||||
|
$agent_status->{'datos'} = "";
|
||||||
|
}
|
||||||
|
|
||||||
my $save = ($module->{'history_data'} == 1 && ($agent_status->{'datos'} ne $processed_data || $last_try < ($utimestamp - 86400))) ? 1 : 0;
|
my $save = ($module->{'history_data'} == 1 && ($agent_status->{'datos'} ne $processed_data || $last_try < ($utimestamp - 86400))) ? 1 : 0;
|
||||||
|
|
||||||
db_do ($dbh, 'UPDATE tagente_estado
|
db_do ($dbh, 'UPDATE tagente_estado
|
||||||
|
@ -190,7 +190,7 @@ foreach $addr_item (@net_addr_list) {
|
|||||||
update_recon_task ($dbh, $task_id, ceil ($i / ($total_hosts / 100)));
|
update_recon_task ($dbh, $task_id, ceil ($i / ($total_hosts / 100)));
|
||||||
|
|
||||||
my $alive = 0;
|
my $alive = 0;
|
||||||
if (pandora_ping (\%conf, $addr) == 1) {
|
if (pandora_ping (\%conf, $addr, 5, 2) == 1) {
|
||||||
$alive = 1;
|
$alive = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -321,7 +321,7 @@ foreach $addr_item (@net_addr_list) {
|
|||||||
my $addr = $addr_item;
|
my $addr = $addr_item;
|
||||||
|
|
||||||
my $alive = 0;
|
my $alive = 0;
|
||||||
if (pandora_ping (\%conf, $addr) == 1) {
|
if (pandora_ping (\%conf, $addr, 5 ,2) == 1) {
|
||||||
$alive = 1;
|
$alive = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user