mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Update error message from smbclient v2.2.7 (Patch 740132 - Cove Schneider)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@580 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
7d32d2b5f4
commit
b25150f0a4
1 changed files with 4 additions and 5 deletions
|
|
@ -205,18 +205,17 @@ if (/\s*(\d*) blocks of size (\d*)\. (\d*) blocks available/) {
|
|||
$answer = "Result from smbclient not suitable\n";
|
||||
$state = "UNKNOWN";
|
||||
foreach (@lines) {
|
||||
if (/Access denied/) {
|
||||
if (/(Access denied|NT_STATUS_LOGON_FAILURE)/) {
|
||||
$answer = "Access Denied\n";
|
||||
$state = "CRITICAL";
|
||||
last;
|
||||
}
|
||||
if (/(Unknown host \w*)/) {
|
||||
$answer = "$1\n";_
|
||||
|
||||
if (/(Unknown host \w*|Connection.*failed)/) {
|
||||
$answer = "$1\n";
|
||||
$state = "CRITICAL";
|
||||
last;
|
||||
}
|
||||
if (/(You specified an invalid share name)/) {
|
||||
if (/(You specified an invalid share name|NT_STATUS_BAD_NETWORK_NAME)/) {
|
||||
$answer = "Invalid share name \\\\$host\\$share\n";
|
||||
$state = "CRITICAL";
|
||||
last;
|
||||
|
|
|
|||
Loading…
Reference in a new issue