From e10a7bf414791181633416e9600edd2f8741fe01 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 21 Jul 2011 13:01:30 +0000 Subject: [PATCH] 2011-07-21 Sergio Martin * util/recon_scripts/snmpdevices.pl: Fixed undeclared variable git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4615 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 4 ++++ pandora_server/util/recon_scripts/snmpdevices.pl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 8ab78d43c6..7ef70edbed 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2011-07-21 Sergio Martin + + * util/recon_scripts/snmpdevices.pl: Fixed undeclared variable + 2011-07-14 Ramon Novoa * lib/PandoraFMS/PredictionServer.pm: Use prediction_module to tell diff --git a/pandora_server/util/recon_scripts/snmpdevices.pl b/pandora_server/util/recon_scripts/snmpdevices.pl index d9cfe5c6a8..3f6ad6f998 100755 --- a/pandora_server/util/recon_scripts/snmpdevices.pl +++ b/pandora_server/util/recon_scripts/snmpdevices.pl @@ -173,7 +173,7 @@ for (my $i = 1; $net_addr <= $net_addr->broadcast; $i++, $net_addr++) { last; } - $net_addr_temp = $net_addr + 1; + my $net_addr_temp = $net_addr + 1; if($net_addr eq $net_addr_temp) { $last = 1; }