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