[nagiosplug] check_disk_smb now handles ...

Matthias Eble psychotrahe at users.sourceforge.net
Sun Nov 28 22:09:32 CET 2010


 Module: nagiosplug
 Branch: master
 Commit: 3c67c9cb60a4681a29e509fccbb333e0f6234f54
 Author: Matthias Eble <psychotrahe at users.sourceforge.net>
   Date: Sun Nov 28 21:43:48 2010 +0100
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=3c67c9c

check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696)

---

 NEWS                              |    1 +
 plugins-scripts/check_disk_smb.pl |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

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;





More information about the Commits mailing list