summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_disk_smb.pl
diff options
context:
space:
mode:
authorMatthias Eble <psychotrahe@users.sourceforge.net>2010-11-28 20:43:48 (GMT)
committerMatthias Eble <psychotrahe@users.sourceforge.net>2010-11-28 20:43:48 (GMT)
commit3c67c9cb60a4681a29e509fccbb333e0f6234f54 (patch)
tree4db063d1bbe09a4719eb67c0b5eee6aaec494406 /plugins-scripts/check_disk_smb.pl
parent0892c4ac28c4c2e3b6275187f845813b4cd6d320 (diff)
downloadmonitoring-plugins-3c67c9cb60a4681a29e509fccbb333e0f6234f54.tar.gz
check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696)
Diffstat (limited to 'plugins-scripts/check_disk_smb.pl')
-rwxr-xr-xplugins-scripts/check_disk_smb.pl2
1 files changed, 1 insertions, 1 deletions
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/) {
239 $answer = "Result from smbclient not suitable\n"; 239 $answer = "Result from smbclient not suitable\n";
240 $state = "UNKNOWN"; 240 $state = "UNKNOWN";
241 foreach (@lines) { 241 foreach (@lines) {
242 if (/(Access denied|NT_STATUS_LOGON_FAILURE)/) { 242 if (/(Access denied|NT_STATUS_LOGON_FAILURE|NT_STATUS_ACCESS_DENIED)/) {
243 $answer = "Access Denied\n"; 243 $answer = "Access Denied\n";
244 $state = "CRITICAL"; 244 $state = "CRITICAL";
245 last; 245 last;