diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index b20e51e62f..53982b1553 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2011-09-06 Ramon Novoa + + * lib/PandoraFMS/NmapParser.pm: Remove nmap warnings from output. + 2011-09-05 Ramon Novoa * conf/pandora_server.conf: Disable ICMP and SNMP enterprise servers diff --git a/pandora_server/lib/PandoraFMS/NmapParser.pm b/pandora_server/lib/PandoraFMS/NmapParser.pm index dc4090be28..058d3c6654 100644 --- a/pandora_server/lib/PandoraFMS/NmapParser.pm +++ b/pandora_server/lib/PandoraFMS/NmapParser.pm @@ -145,7 +145,7 @@ sub parsescan { else { $cmd = "$nmap $args -v -v -v -oX - " . ( join ' ', @ips ); open $FH, - "$cmd |" || die "[Nmap-Parser] Could not perform nmap scan - $!"; + "$cmd 2>/dev/null |" || die "[Nmap-Parser] Could not perform nmap scan - $!"; $self->parse($FH); close $FH; }