From 3c67c9cb60a4681a29e509fccbb333e0f6234f54 Mon Sep 17 00:00:00 2001
From: Matthias Eble <psychotrahe@users.sourceforge.net>
Date: Sun, 28 Nov 2010 21:43:48 +0100
Subject: check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian
 #601696)


diff --git a/NEWS b/NEWS
index 9458013..cf4b404 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ This file documents the major additions and syntax changes between releases.
 	  check_snmp will consider it a numeric value and thus apply threshold checks and return performance data.
 	  This reverts back to 1.4.14 behaviour with strings
 	Fix check_disk free space calculation if blocksizes differ within a disk group (Bekar - #2973603)
+	check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696) 
 
 1.4.15 27th July 2010
 	ENHANCEMENTS
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl
index 4698700..6783543 100755
--- a/plugins-scripts/check_disk_smb.pl
+++ b/plugins-scripts/check_disk_smb.pl
@@ -239,7 +239,7 @@ if (/\s*(\d*) blocks of size (\d*)\. (\d*) blocks available/) {
 	$answer = "Result from smbclient not suitable\n";
 	$state = "UNKNOWN";
 	foreach (@lines) {
-		if (/(Access denied|NT_STATUS_LOGON_FAILURE)/) {
+		if (/(Access denied|NT_STATUS_LOGON_FAILURE|NT_STATUS_ACCESS_DENIED)/) {
 			$answer = "Access Denied\n";
 			$state = "CRITICAL";
 			last;
-- 
cgit v0.10-9-g596f

