blob: 55f4403ebc14a14147a99c51d78d5893079a120f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
*** check_disk_smb 2003-05-19 15:04:55.000000000 -0700
--- check_disk_smb.orig 2003-05-19 15:04:43.000000000 -0700
***************
*** 205,221 ****
$answer = "Result from smbclient not suitable\n";
$state = "UNKNOWN";
foreach (@lines) {
! if (/(Access denied|NT_STATUS_LOGON_FAILURE)/) {
$answer = "Access Denied\n";
$state = "CRITICAL";
last;
}
! if (/(Unknown host \w*|Connection.*failed)/) {
! $answer = "$1\n";
$state = "CRITICAL";
last;
}
! if (/(You specified an invalid share name|NT_STATUS_BAD_NETWORK_NAME)/) {
$answer = "Invalid share name \\\\$host\\$share\n";
$state = "CRITICAL";
last;
--- 205,222 ----
$answer = "Result from smbclient not suitable\n";
$state = "UNKNOWN";
foreach (@lines) {
! if (/Access denied/) {
$answer = "Access Denied\n";
$state = "CRITICAL";
last;
}
! if (/(Unknown host \w*)/) {
! $answer = "$1\n";_
!
$state = "CRITICAL";
last;
}
! if (/(You specified an invalid share name)/) {
$answer = "Invalid share name \\\\$host\\$share\n";
$state = "CRITICAL";
last;
|