2011-07-08 Sergio Martin <sergio.martin@artica.es>

* 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
This commit is contained in:
zarzuelo 2011-07-08 08:46:18 +00:00
parent 2af5d2e902
commit f04550513e
2 changed files with 12 additions and 2 deletions

View File

@ -1,9 +1,18 @@
2011-07-08 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fiexd bug in recon script
2011-07-07 Ramon Novoa <rnovoa@artica.es> 2011-07-07 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Added support for warning/critical status * lib/PandoraFMS/Core.pm: Added support for warning/critical status
regexp (works with both numeric and string data types). Added regexp (works with both numeric and string data types). Added
support for alert-only planned downtimes. support for alert-only planned downtimes.
2011-07-07 Sergio Martin <sergio.martin@artica.es>
* util/recon_scripts/snmpdevices.pl: Fixed little bug
in a check to exception condition
2011-07-07 Sergio Martin <sergio.martin@artica.es> 2011-07-07 Sergio Martin <sergio.martin@artica.es>
* Makefile.PL * Makefile.PL

View File

@ -172,11 +172,12 @@ for (my $i = 1; $net_addr <= $net_addr->broadcast; $i++, $net_addr++) {
if($last == 1) { if($last == 1) {
last; last;
} }
if($net_addr eq $net_addr++) {
$net_addr_temp = $net_addr + 1;
if($net_addr eq $net_addr_temp) {
$last = 1; $last = 1;
} }
if ($net_addr =~ /\b\d{1,3}\.\d{1,3}\.\d{1,3}\.(\d{1,3})\b/) { if ($net_addr =~ /\b\d{1,3}\.\d{1,3}\.\d{1,3}\.(\d{1,3})\b/) {
if($1 eq '0' || $1 eq '255') { if($1 eq '0' || $1 eq '255') {
next; next;