From 05a66e3bcabba834302bf7068e94e40d02a7a731 Mon Sep 17 00:00:00 2001 From: "Moritz Rudert (helios)" Date: Thu, 24 Jan 2013 10:02:14 +0100 Subject: [PATCH] fixed libs check --- check_libs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/check_libs b/check_libs index 1a724ad..192de17 100755 --- a/check_libs +++ b/check_libs @@ -29,7 +29,12 @@ use Getopt::Long; $ENV{'PATH'} = '/bin:/sbin:/usr/bin:/usr/sbin'; delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; -my $LSOF = '/usr/bin/lsof -F0'; +my $LSOF = '/usr/sbin/lsof -F0 -w'; + +if (-e "/etc/debian_version" ) { + my $LSOF = '/usr/bin/lsof -F0 -w'; +} + my $VERSION = '0.2012042101'; # nagios exit codes