aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts/check_mssql.pl
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2014-06-18 18:45:10 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2014-06-18 18:45:10 +0200
commitae24aaeefba290d910a8d8f945716ecc84ca02ca (patch)
treebc569bc0a426fc1cd4cff2b8425ce9b89d13aa7b /plugins-scripts/check_mssql.pl
parentb63974c2cb39705eacc4733ca7a376fde7d0921d (diff)
downloadmonitoring-plugins-ae24aaeefba290d910a8d8f945716ecc84ca02ca.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.
Diffstat (limited to 'plugins-scripts/check_mssql.pl')
-rwxr-xr-xplugins-scripts/check_mssql.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins-scripts/check_mssql.pl b/plugins-scripts/check_mssql.pl
index a3f497cd..a436a8ff 100755
--- a/plugins-scripts/check_mssql.pl
+++ b/plugins-scripts/check_mssql.pl
@@ -29,7 +29,8 @@
use DBI;
use DBD::Sybase;
use Getopt::Long;
-use lib ".";
+use FindBin;
+use lib "$FindBin::Bin";
use utils qw($TIMEOUT %ERRORS &print_revision &support);
use strict;