From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/57488-check_disk_smb.patch | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 web/attachments/57488-check_disk_smb.patch (limited to 'web/attachments/57488-check_disk_smb.patch') diff --git a/web/attachments/57488-check_disk_smb.patch b/web/attachments/57488-check_disk_smb.patch new file mode 100644 index 0000000..7883520 --- /dev/null +++ b/web/attachments/57488-check_disk_smb.patch @@ -0,0 +1,46 @@ +--- ../check_disk_smb.pl 2003-07-02 10:57:29.000000000 -0500 ++++ check_disk_smb.pl 2003-07-31 20:06:13.000000000 -0500 +@@ -23,7 +23,7 @@ + use POSIX; + use strict; + use Getopt::Long; +-use vars qw($opt_V $opt_h $opt_H $opt_s $opt_W $opt_u $opt_p $opt_w $opt_c $verbose); ++use vars qw($opt_P $opt_V $opt_h $opt_H $opt_s $opt_W $opt_u $opt_p $opt_w $opt_c $verbose); + use vars qw($PROGNAME); + use lib utils.pm ; + use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); +@@ -40,6 +40,7 @@ + Getopt::Long::Configure('bundling'); + GetOptions + ("v" => \$verbose, "verbose" => \$verbose, ++ "P=s" => \$opt_P, "Port=s" => \$opt_P, + "V" => \$opt_V, "version" => \$opt_V, + "h" => \$opt_h, "help" => \$opt_h, + "w=s" => \$opt_w, "warning=s" => \$opt_w, +@@ -58,7 +59,7 @@ + if ($opt_h) {print_help(); exit $ERRORS{'OK'};} + + my $smbclient= "$utils::PATH_TO_SMBCLIENT " ; +-my $smbclientoptions=""; ++my $smbclientoptions = $opt_P ? " -p $opt_P " : " "; + + + # Options checking +@@ -230,7 +231,7 @@ + + sub print_usage () { + print "Usage: $PROGNAME -H -s -u -p +- -w -c [-W ]\n"; ++ -w -c [-W ] [-P ]\n"; + } + + sub print_help () { +@@ -257,6 +258,8 @@ + + -c, --critical=INTEGER or INTEGER[kMG] + Percent of used space at which a critical will be generated (Defaults: 95%) ++-P, --Port=Integer ++ Port to be used to connect to. Some windows boxes use 139, others 445. (Default: none) + + If thresholds are followed by either a k, M, or G then check to see if that + much disk space is available (kilobytes, Megabytes, Gigabytes) -- cgit v1.2.3-74-g34f1