2011-09-06 Ramon Novoa <rnovoa@artica.es>

* lib/PandoraFMS/NmapParser.pm: Remove nmap warnings from
          output.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4915 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2011-09-06 12:26:02 +00:00
parent b439f6161b
commit e11d6d5569
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-09-06 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NmapParser.pm: Remove nmap warnings from output.
2011-09-05 Ramon Novoa <rnovoa@artica.es>
* conf/pandora_server.conf: Disable ICMP and SNMP enterprise servers

View File

@ -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;
}