diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 429d15bebf..a2e92e149b 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,9 +1,18 @@ +2011-07-08 Sergio Martin + + * util/recon_scripts/snmpdevices.pl: Fiexd bug in recon script + 2011-07-07 Ramon Novoa * lib/PandoraFMS/Core.pm: Added support for warning/critical status regexp (works with both numeric and string data types). Added support for alert-only planned downtimes. +2011-07-07 Sergio Martin + + * util/recon_scripts/snmpdevices.pl: Fixed little bug + in a check to exception condition + 2011-07-07 Sergio Martin * Makefile.PL diff --git a/pandora_server/util/recon_scripts/snmpdevices.pl b/pandora_server/util/recon_scripts/snmpdevices.pl index 94b38f0112..d9cfe5c6a8 100755 --- a/pandora_server/util/recon_scripts/snmpdevices.pl +++ b/pandora_server/util/recon_scripts/snmpdevices.pl @@ -172,11 +172,12 @@ for (my $i = 1; $net_addr <= $net_addr->broadcast; $i++, $net_addr++) { if($last == 1) { last; } - if($net_addr eq $net_addr++) { + + $net_addr_temp = $net_addr + 1; + if($net_addr eq $net_addr_temp) { $last = 1; } - if ($net_addr =~ /\b\d{1,3}\.\d{1,3}\.\d{1,3}\.(\d{1,3})\b/) { if($1 eq '0' || $1 eq '255') { next;