[nagiosplug] check_disk_smb now handles ...
"Matthias Eble" <[email protected]> Sun, 28 Nov 2010 21:09:32 +0000
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug Branch: master Commit: 3c67c9cb60a4681a29e509fccbb333e0f6234f54 Author: Matthias Eble <[email protected]> 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; ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev