diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-16 05:19:09 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-01-16 05:19:09 +0000 |
commit | 2350599a4c8a3fd822d8cedd67da5af03b265ea8 (patch) | |
tree | f59ee44b66e3a3d24ca1aa21de11cc97d956ac28 | |
parent | b6f64e12900d1dc308a3325b4c5d80e76eade984 (diff) | |
download | monitoring-plugins-2350599a4c8a3fd822d8cedd67da5af03b265ea8.tar.gz |
accept $ for share and \\ for users
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@241 f882894a-f735-0410-b71e-b25c423dba1c
-rwxr-xr-x | plugins-scripts/check_disk_smb.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl index 8c275c8c..c3f33edb 100755 --- a/plugins-scripts/check_disk_smb.pl +++ b/plugins-scripts/check_disk_smb.pl | |||
@@ -68,11 +68,11 @@ my $host = $1 if ($opt_H =~ /([-_.A-Za-z0-9]+\$?)/); | |||
68 | ($host) || usage("Invalid host: $opt_H\n"); | 68 | ($host) || usage("Invalid host: $opt_H\n"); |
69 | 69 | ||
70 | ($opt_s) || ($opt_s = shift) || usage("Share volume not specified\n"); | 70 | ($opt_s) || ($opt_s = shift) || usage("Share volume not specified\n"); |
71 | my $share = $1 if ($opt_s =~ /([-_.A-Za-z0-9]+)/); | 71 | my $share = $1 if ($opt_s =~ /([-_.A-Za-z0-9]+\$?)/); |
72 | ($share) || usage("Invalid share: $opt_s\n"); | 72 | ($share) || usage("Invalid share: $opt_s\n"); |
73 | 73 | ||
74 | ($opt_u) || ($opt_u = shift) || ($opt_u = "guest"); | 74 | ($opt_u) || ($opt_u = shift) || ($opt_u = "guest"); |
75 | my $user = $1 if ($opt_u =~ /([-_.A-Za-z0-9]+)/); | 75 | my $user = $1 if ($opt_u =~ /([-_.A-Za-z0-9\\]+)/); |
76 | ($user) || usage("Invalid user: $opt_u\n"); | 76 | ($user) || usage("Invalid user: $opt_u\n"); |
77 | 77 | ||
78 | ($opt_p) || ($opt_p = shift) || ($opt_p = "guest"); | 78 | ($opt_p) || ($opt_p = shift) || ($opt_p = "guest"); |