diff options
author | Matthias Eble <psychotrahe@users.sourceforge.net> | 2010-11-28 21:43:48 +0100 |
---|---|---|
committer | Matthias Eble <psychotrahe@users.sourceforge.net> | 2010-11-28 21:43:48 +0100 |
commit | 3c67c9cb60a4681a29e509fccbb333e0f6234f54 (patch) | |
tree | 4db063d1bbe09a4719eb67c0b5eee6aaec494406 /plugins-scripts | |
parent | 0892c4ac28c4c2e3b6275187f845813b4cd6d320 (diff) | |
download | monitoring-plugins-3c67c9cb60a4681a29e509fccbb333e0f6234f54.tar.gz |
check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696)
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_disk_smb.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl index 46987006..6783543b 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; |