summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl
index 985fa96..022fa50 100755
--- a/plugins-scripts/check_disk_smb.pl
+++ b/plugins-scripts/check_disk_smb.pl
@@ -78,6 +78,7 @@ my $user = $1 if ($opt_u =~ /^([-_.A-Za-z0-9\\]+)$/);
78 78
79($opt_p) || ($opt_p = shift) || ($opt_p = ""); 79($opt_p) || ($opt_p = shift) || ($opt_p = "");
80my $pass = $1 if ($opt_p =~ /(.*)/); 80my $pass = $1 if ($opt_p =~ /(.*)/);
81$pass = "-N" if ($opt_p eq "");
81 82
82($opt_w) || ($opt_w = shift) || ($opt_w = 85); 83($opt_w) || ($opt_w = shift) || ($opt_w = 85);
83my $warn = $1 if ($opt_w =~ /^([0-9]{1,2}\%?|100\%?|[0-9]+[kMG])$/); 84my $warn = $1 if ($opt_w =~ /^([0-9]{1,2}\%?|100\%?|[0-9]+[kMG])$/);