[nagiosplug] Make check_disk_smb accept spaces in share names ...
"Matthias Eble" <[email protected]> Sun, 28 Nov 2010 21:09:27 +0000
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug Branch: master Commit: 0892c4ac28c4c2e3b6275187f845813b4cd6d320 Author: Matthias Eble <[email protected]> Date: Sun Nov 28 21:35:59 2010 +0100 URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=0892c4a Make check_disk_smb accept spaces in share names (#990948, #1370031, Debian #601699) --- NEWS | 1 + plugins-scripts/check_disk_smb.pl | 2 +- 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. ... ENHANCEMENTS check_nt UPTIME accepts warning/critical thresholds (Ryan Kelly) + check_disk_smb now allows spaces in share names (#990948, #1370031, Debian #601699) FIXES 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 ]+\$?)$/); ($host) || usage("Invalid host: $opt_H\n"); ($opt_s) || ($opt_s = shift @ARGV) || usage("Share volume not specified\n"); -my $share = $1 if ($opt_s =~ /^([-_.A-Za-z0-9]+\$?)$/); +my $share = $1 if ($opt_s =~ /^([-_.A-Za-z0-9 ]+\$?)$/); ($share) || usage("Invalid share: $opt_s\n"); defined($opt_u) || ($opt_u = shift @ARGV) || ($opt_u = "guest"); ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev