summaryrefslogtreecommitdiffstats
path: root/web/attachments/50703-check_disk_smb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/50703-check_disk_smb.patch')
-rw-r--r--web/attachments/50703-check_disk_smb.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/web/attachments/50703-check_disk_smb.patch b/web/attachments/50703-check_disk_smb.patch
new file mode 100644
index 0000000..55f4403
--- /dev/null
+++ b/web/attachments/50703-check_disk_smb.patch
@@ -0,0 +1,40 @@
1*** check_disk_smb 2003-05-19 15:04:55.000000000 -0700
2--- check_disk_smb.orig 2003-05-19 15:04:43.000000000 -0700
3***************
4*** 205,221 ****
5 $answer = "Result from smbclient not suitable\n";
6 $state = "UNKNOWN";
7 foreach (@lines) {
8! if (/(Access denied|NT_STATUS_LOGON_FAILURE)/) {
9 $answer = "Access Denied\n";
10 $state = "CRITICAL";
11 last;
12 }
13! if (/(Unknown host \w*|Connection.*failed)/) {
14! $answer = "$1\n";
15 $state = "CRITICAL";
16 last;
17 }
18! if (/(You specified an invalid share name|NT_STATUS_BAD_NETWORK_NAME)/) {
19 $answer = "Invalid share name \\\\$host\\$share\n";
20 $state = "CRITICAL";
21 last;
22--- 205,222 ----
23 $answer = "Result from smbclient not suitable\n";
24 $state = "UNKNOWN";
25 foreach (@lines) {
26! if (/Access denied/) {
27 $answer = "Access Denied\n";
28 $state = "CRITICAL";
29 last;
30 }
31! if (/(Unknown host \w*)/) {
32! $answer = "$1\n";_
33!
34 $state = "CRITICAL";
35 last;
36 }
37! if (/(You specified an invalid share name)/) {
38 $answer = "Invalid share name \\\\$host\\$share\n";
39 $state = "CRITICAL";
40 last;