Package: nagios-plugins-standard
Version: 1.4.12-5
Tags: patch
Severity: normal

In some instances, smbclient will return the code
NT_STATUS_ACCESS_DENIED when there's an authentication problem, not
NT_STATUS_LOGON_FAILURE. Both indicate trouble, of course, but the
plugin should handle either scenario. (We've seen this when the
fileserver had trouble connecting to the domain controller.)

The attached patch adds a match for this particular error string.

Adam Buchbinder
--- check_disk_smb.pl.old	2010-10-28 11:24:15.000000000 -0400
+++ check_disk_smb.pl	2010-10-28 11:24:57.000000000 -0400
@@ -239,7 +239,7 @@
 	$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;

Reply via email to