From bfe2652f922b922210420b0d147be8b8a13b5361 Mon Sep 17 00:00:00 2001 From: slerena Date: Wed, 14 Sep 2011 10:55:16 +0000 Subject: [PATCH] 2011-09-14 Sancho Lerena * lib/PandoraFMS/NmapParser.pm: Avoid warning messages. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4949 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/lib/PandoraFMS/NmapParser.pm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 8ea0e34c65..b0ba73edfc 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ + +2011-09-14 Sancho Lerena + + * lib/PandoraFMS/NmapParser.pm: Avoid warning messages. + 2011-09-12 Sancho Lerena * util/pandora_remote_agent.sh: New remote agent script to do customized diff --git a/pandora_server/lib/PandoraFMS/NmapParser.pm b/pandora_server/lib/PandoraFMS/NmapParser.pm index 058d3c6654..bfd6b0cf04 100644 --- a/pandora_server/lib/PandoraFMS/NmapParser.pm +++ b/pandora_server/lib/PandoraFMS/NmapParser.pm @@ -139,7 +139,7 @@ sub parsescan { "$nmap $args -v -v -v -oX " . $self->{cache_file} . " " . ( join ' ', @ips ); - `$cmd`; #remove output from STDOUT + `$cmd 2> /dev/null`; #remove output from STDOUT $self->parsefile( $self->{cache_file} ); } else {