diff options
-rwxr-xr-x | nagios-check-libs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nagios-check-libs b/nagios-check-libs index 2d1e6e1..f38fcbc 100755 --- a/nagios-check-libs +++ b/nagios-check-libs @@ -64,12 +64,12 @@ sub getUsers() { -print STDERR "Running $LSOF +L\n" if $params->{'verbose'}; -open (LSOF, "$LSOF +L|") or die ("Cannot run $LSOF +L: $!\n"); +print STDERR "Running $LSOF -n +L\n" if $params->{'verbose'}; +open (LSOF, "$LSOF -n +L|") or die ("Cannot run $LSOF -n +L: $!\n"); my @lsof=<LSOF>; close LSOF; if ($CHILD_ERROR) { # program failed - die("$LSOF +L returned with non-zero exit code: ".($CHILD_ERROR / 256)."\n"); + die("$LSOF -n +L returned with non-zero exit code: ".($CHILD_ERROR / 256)."\n"); }; for my $line (@lsof) { |