Code

check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696)
authorMatthias Eble <psychotrahe@users.sourceforge.net>
Sun, 28 Nov 2010 20:43:48 +0000 (21:43 +0100)
committerMatthias Eble <psychotrahe@users.sourceforge.net>
Sun, 28 Nov 2010 20:43:48 +0000 (21:43 +0100)
NEWS
plugins-scripts/check_disk_smb.pl

diff --git a/NEWS b/NEWS
index 945801390813064a7a22125eb8e9e92ccb731e51..cf4b4042bd278396a0c30df8e66b4fdb72e9ad9f 100644 (file)
--- 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
index 46987006647d452256b5b7e131924e4d821ed802..6783543b1cdb72d27180b16266362b2cfa72983e 100755 (executable)
@@ -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;