From f04550513e60c7851e9750e80ad20a6ce9ce261c Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Fri, 8 Jul 2011 08:46:18 +0000 Subject: [PATCH] 2011-07-08 Sergio Martin * util/recon_scripts/snmpdevices.pl: Fiexd bug in recon script git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4531 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 9 +++++++++ pandora_server/util/recon_scripts/snmpdevices.pl | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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;