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:
slerena 2013-02-28 15:52:46 +00:00
parent ffe4173ee9
commit 38cd6399c0
3 changed files with 11 additions and 2 deletions

View File

@ -8,6 +8,10 @@
* lib/PandoraFMS/PluginServer.pm: Removed several "Use of uninitialized i
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>
* bin/pandora_server: Undid the previous commit since forking after

View File

@ -1058,6 +1058,11 @@ sub pandora_process_module ($$$$$$$$$;$) {
}
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;
db_do ($dbh, 'UPDATE tagente_estado

View File

@ -190,7 +190,7 @@ foreach $addr_item (@net_addr_list) {
update_recon_task ($dbh, $task_id, ceil ($i / ($total_hosts / 100)));
my $alive = 0;
if (pandora_ping (\%conf, $addr) == 1) {
if (pandora_ping (\%conf, $addr, 5, 2) == 1) {
$alive = 1;
}
@ -321,7 +321,7 @@ foreach $addr_item (@net_addr_list) {
my $addr = $addr_item;
my $alive = 0;
if (pandora_ping (\%conf, $addr) == 1) {
if (pandora_ping (\%conf, $addr, 5 ,2) == 1) {
$alive = 1;
}