[monitoring-plugins] check_ntp.pl: Using FindBin
Jan Wagner
git at monitoring-plugins.org
Sun Oct 4 19:00:11 CEST 2015
Module: monitoring-plugins
Branch: master
Commit: 20d223119eb40bd1ecdd637eb845f5e16c87bd36
Author: Jan Wagner <waja at cyconet.org>
Date: Sun Oct 4 18:38:25 2015 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=20d2231
check_ntp.pl: Using FindBin
---
plugins-scripts/check_ntp.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl
index 13da939..dd2cd6d 100755
--- a/plugins-scripts/check_ntp.pl
+++ b/plugins-scripts/check_ntp.pl
@@ -61,7 +61,8 @@ use POSIX;
use strict;
use Getopt::Long;
use vars qw($opt_V $opt_h $opt_H $opt_t $opt_w $opt_c $opt_O $opt_j $opt_k $verbose $PROGNAME $def_jitter $ipv4 $ipv6);
-use lib utils.pm;
+use FindBin;
+use lib "$FindBin::Bin";
use utils qw($TIMEOUT %ERRORS &print_revision &support);
$PROGNAME="check_ntp";
More information about the Commits
mailing list