summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-07-02 15:52:23 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2003-07-02 15:52:23 (GMT)
commit620a792dc0eb6cbe095de0bf5b4c588849e21cd9 (patch)
treeae9fd0664e5472efc123732c329c914578284a03
parentde50ab8a0c0944c2c6e5221af982780f959c6651 (diff)
downloadmonitoring-plugins-620a792dc0eb6cbe095de0bf5b4c588849e21cd9.tar.gz
Update error message from smbclient v2.2.7 (Patch 740132 - Cove Schneider)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@579 f882894a-f735-0410-b71e-b25c423dba1c
-rwxr-xr-xplugins-scripts/check_disk_smb.pl9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl
index 870e4e7..b4eee38 100755
--- a/plugins-scripts/check_disk_smb.pl
+++ b/plugins-scripts/check_disk_smb.pl
@@ -205,18 +205,17 @@ if (/\s*(\d*) blocks of size (\d*)\. (\d*) blocks available/) {
205 $answer = "Result from smbclient not suitable\n"; 205 $answer = "Result from smbclient not suitable\n";
206 $state = "UNKNOWN"; 206 $state = "UNKNOWN";
207 foreach (@lines) { 207 foreach (@lines) {
208 if (/Access denied/) { 208 if (/(Access denied|NT_STATUS_LOGON_FAILURE)/) {
209 $answer = "Access Denied\n"; 209 $answer = "Access Denied\n";
210 $state = "CRITICAL"; 210 $state = "CRITICAL";
211 last; 211 last;
212 } 212 }
213 if (/(Unknown host \w*)/) { 213 if (/(Unknown host \w*|Connection.*failed)/) {
214 $answer = "$1\n";_ 214 $answer = "$1\n";
215
216 $state = "CRITICAL"; 215 $state = "CRITICAL";
217 last; 216 last;
218 } 217 }
219 if (/(You specified an invalid share name)/) { 218 if (/(You specified an invalid share name|NT_STATUS_BAD_NETWORK_NAME)/) {
220 $answer = "Invalid share name \\\\$host\\$share\n"; 219 $answer = "Invalid share name \\\\$host\\$share\n";
221 $state = "CRITICAL"; 220 $state = "CRITICAL";
222 last; 221 last;