Преглед изворни кода

patch for admin shares

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@80 f882894a-f735-0410-b71e-b25c423dba1c
Subhendu Ghosh пре 23 година
родитељ
комит
9be0af942a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      plugins-scripts/check_disk_smb.pl

+ 1 - 1
plugins-scripts/check_disk_smb.pl

@@ -64,7 +64,7 @@ my $smbclientoptions="";
 # Options checking
 
 ($opt_H) || ($opt_H = shift) || usage("Host name not specified\n");
-my $host = $1 if ($opt_H =~ /([-_.A-Za-z0-9]+)/);
+my $host = $1 if ($opt_H =~ /([-_.A-Za-z0-9]+\$?)/);
 ($host) || usage("Invalid host: $opt_H\n");
 
 ($opt_s) || ($opt_s = shift) || usage("Share volume not specified\n");