aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts
diff options
context:
space:
mode:
authorGravatar Jan Wagner <waja@cyconet.org> 2015-10-04 18:38:25 +0200
committerGravatar Jan Wagner <waja@cyconet.org> 2015-10-04 18:38:25 +0200
commit20d223119eb40bd1ecdd637eb845f5e16c87bd36 (patch)
tree5da35a4ab336514116c36165030f2f1e6c6fd44b /plugins-scripts
parent2f5d0b105cb985ee22bce9a401d7b685e82d4458 (diff)
downloadmonitoring-plugins-20d223119eb40bd1ecdd637eb845f5e16c87bd36.tar.gz
check_ntp.pl: Using FindBin
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-xplugins-scripts/check_ntp.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl
index 13da939c..dd2cd6dc 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";