summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_disk_smb.pl
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts/check_disk_smb.pl')
-rwxr-xr-xplugins-scripts/check_disk_smb.pl14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl
index d1b0b3d..9a66ed5 100755
--- a/plugins-scripts/check_disk_smb.pl
+++ b/plugins-scripts/check_disk_smb.pl
@@ -14,13 +14,10 @@
14# Modified [warn] and [critical] parameters to accept format of nnn[M|G] to 14# Modified [warn] and [critical] parameters to accept format of nnn[M|G] to
15# allow setting of limits in MBytes or GBytes. Percentage settings for large 15# allow setting of limits in MBytes or GBytes. Percentage settings for large
16# drives is a pain in the butt 16# drives is a pain in the butt
17 17# 2-May-2002 - SGhosh fix for embedded perl
18BEGIN { 18#
19 if ($0 =~ m/^(.*?)[\/\\]([^\/\\]+)$/) { 19# $Id$
20 $runtimedir = $1; 20#
21 $PROGNAME = $2;
22 }
23}
24 21
25require 5.004; 22require 5.004;
26use POSIX; 23use POSIX;
@@ -28,7 +25,8 @@ use strict;
28use Getopt::Long; 25use Getopt::Long;
29use vars qw($opt_V $opt_h $opt_H $opt_s $opt_W $opt_u $opt_p $opt_w $opt_c $verbose); 26use vars qw($opt_V $opt_h $opt_H $opt_s $opt_W $opt_u $opt_p $opt_w $opt_c $verbose);
30use vars qw($PROGNAME); 27use vars qw($PROGNAME);
31use lib $main::runtimedir; 28use FindBin;
29use lib "$FindBin::Bin";
32use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); 30use utils qw($TIMEOUT %ERRORS &print_revision &support &usage);
33 31
34sub print_help (); 32sub print_help ();