2009-05-27 Ramon Novoa <rnovoa@artica.es>

* lib/PandoraFMS/ReconServer.pm: Interrupt recon tasks being executed
          if the task was deleted.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1717 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2009-05-27 17:23:28 +00:00
parent 068344194d
commit 0396f4abc3
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-05-27 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/ReconServer.pm: Interrupt recon tasks being executed
if the task was deleted.
2009-05-27 Ramon Novoa <rnovoa@artica.es> 2009-05-27 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Disabled string comparisons for * lib/PandoraFMS/Core.pm: Disabled string comparisons for

View File

@ -121,7 +121,9 @@ sub data_consumer ($$) {
for (my $i = 1, $net_addr++; $net_addr < $net_addr->broadcast; $i++, $net_addr++) { for (my $i = 1, $net_addr++; $net_addr < $net_addr->broadcast; $i++, $net_addr++) {
my $addr = (split(/\//, $net_addr))[0]; my $addr = (split(/\//, $net_addr))[0];
update_recon_task ($dbh, $task_id, ceil ($i / ($total_hosts / 100)));
# Update the recon task or break if it does not exist anymore
last if (update_recon_task ($dbh, $task_id, ceil ($i / ($total_hosts / 100))) eq '0E0');
# Does the host already exist? # Does the host already exist?
next if (get_agent_from_addr ($dbh, $addr) > 0); next if (get_agent_from_addr ($dbh, $addr) > 0);