summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-06-18 16:45:10 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-06-18 16:45:10 (GMT)
commitae24aaeefba290d910a8d8f945716ecc84ca02ca (patch)
treebc569bc0a426fc1cd4cff2b8425ce9b89d13aa7b
parentb63974c2cb39705eacc4733ca7a376fde7d0921d (diff)
downloadmonitoring-plugins-ae24aae.tar.gz
Use FindBin consistently across Perl plugins
Use Perl's FindBin module to locate the path to utils.pm in check_file_age.pl and check_mssql.pl, just as we do in other Perl plugins.
-rwxr-xr-xplugins-scripts/check_file_age.pl3
-rwxr-xr-xplugins-scripts/check_mssql.pl3
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins-scripts/check_file_age.pl b/plugins-scripts/check_file_age.pl
index 5e062de..ae25201 100755
--- a/plugins-scripts/check_file_age.pl
+++ b/plugins-scripts/check_file_age.pl
@@ -25,7 +25,8 @@ use English;
25use Getopt::Long; 25use Getopt::Long;
26use File::stat; 26use File::stat;
27use vars qw($PROGNAME); 27use vars qw($PROGNAME);
28use lib "."; 28use FindBin;
29use lib "$FindBin::Bin";
29use utils qw (%ERRORS &print_revision &support); 30use utils qw (%ERRORS &print_revision &support);
30 31
31sub print_help (); 32sub print_help ();
diff --git a/plugins-scripts/check_mssql.pl b/plugins-scripts/check_mssql.pl
index a3f497c..a436a8f 100755
--- a/plugins-scripts/check_mssql.pl
+++ b/plugins-scripts/check_mssql.pl
@@ -29,7 +29,8 @@
29use DBI; 29use DBI;
30use DBD::Sybase; 30use DBD::Sybase;
31use Getopt::Long; 31use Getopt::Long;
32use lib "."; 32use FindBin;
33use lib "$FindBin::Bin";
33use utils qw($TIMEOUT %ERRORS &print_revision &support); 34use utils qw($TIMEOUT %ERRORS &print_revision &support);
34use strict; 35use strict;
35 36