From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/50703-check_disk_smb.patch | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 web/attachments/50703-check_disk_smb.patch (limited to 'web/attachments/50703-check_disk_smb.patch') 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 @@ +*** 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; -- cgit v1.2.3-74-g34f1