summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d32d2b)
raw | patch | inline | side by side (parent: 7d32d2b)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 2 Jul 2003 15:57:29 +0000 (15:57 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 2 Jul 2003 15:57:29 +0000 (15:57 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@580 f882894a-f735-0410-b71e-b25c423dba1c
plugins-scripts/check_disk_smb.pl | patch | blob | history |
index 870e4e75a82a6e4e13380937cf009cf791340300..b4eee38b88633d4ff030d358a61b412dd9746569 100755 (executable)
$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;