summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@users.sourceforge.net>2010-11-28 20:35:59 (GMT)
committerMatthias Eble <psychotrahe@users.sourceforge.net>2010-11-28 20:35:59 (GMT)
commit0892c4ac28c4c2e3b6275187f845813b4cd6d320 (patch)
treed74de1d9cd5b8cf09d4b88c4575c6f22d069de5c
parent77f2c84d2f599d86a60586494169dcab17853e3a (diff)
downloadmonitoring-plugins-0892c4ac28c4c2e3b6275187f845813b4cd6d320.tar.gz
Make check_disk_smb accept spaces in share names (#990948, #1370031, Debian #601699)
-rw-r--r--NEWS1
-rwxr-xr-xplugins-scripts/check_disk_smb.pl2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index a00febc..9458013 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ This file documents the major additions and syntax changes between releases.
3... 3...
4 ENHANCEMENTS 4 ENHANCEMENTS
5 check_nt UPTIME accepts warning/critical thresholds (Ryan Kelly) 5 check_nt UPTIME accepts warning/critical thresholds (Ryan Kelly)
6 check_disk_smb now allows spaces in share names (#990948, #1370031, Debian #601699)
6 7
7 FIXES 8 FIXES
8 check_snmp now attempts to convert string responses into a double value. If the full string is a value, 9 check_snmp now attempts to convert string responses into a double value. If the full string is a value,
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl
index 7c81fc2..4698700 100755
--- a/plugins-scripts/check_disk_smb.pl
+++ b/plugins-scripts/check_disk_smb.pl
@@ -67,7 +67,7 @@ my $host = $1 if ($opt_H =~ /^([-_.A-Za-z0-9 ]+\$?)$/);
67($host) || usage("Invalid host: $opt_H\n"); 67($host) || usage("Invalid host: $opt_H\n");
68 68
69($opt_s) || ($opt_s = shift @ARGV) || usage("Share volume not specified\n"); 69($opt_s) || ($opt_s = shift @ARGV) || usage("Share volume not specified\n");
70my $share = $1 if ($opt_s =~ /^([-_.A-Za-z0-9]+\$?)$/); 70my $share = $1 if ($opt_s =~ /^([-_.A-Za-z0-9 ]+\$?)$/);
71($share) || usage("Invalid share: $opt_s\n"); 71($share) || usage("Invalid share: $opt_s\n");
72 72
73defined($opt_u) || ($opt_u = shift @ARGV) || ($opt_u = "guest"); 73defined($opt_u) || ($opt_u = shift @ARGV) || ($opt_u = "guest");