esp. when running on a host with containers with user namespaces,
lsof output might be full of lines like
lsof: no pwd entry for UID 887434
this is not helpful and will only clutter the output sent to nagios
Signed-off-by: Peter Palfrader <peter@palfrader.org>
my $INVSERVER = inVserver();
print STDERR "Running $LSOF -n\n" if $params->{'verbose'};
-open (LSOF, "$LSOF -n|") or dief ("Cannot run $LSOF -n: $!\n");
+open (LSOF, "$LSOF -n 2>/dev/null|") or dief ("Cannot run $LSOF -n: $!\n");
my @lsof=<LSOF>;
close LSOF;
if ($CHILD_ERROR) { # program failed