[Pkg-nagios-changes] [pkg-monitoring-plugins] 01/09: Add patches/15_check_smtp_expect from upstream master branch

Jan Wagner waja at moszumanska.debian.org
Fri Oct 16 13:25:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

waja pushed a commit to branch master
in repository pkg-monitoring-plugins.

commit f69aba4f8c79a79d0e2553993b3ca821cb6bd732
Author: Jan Wagner <waja at cyconet.org>
Date:   Fri Oct 9 10:56:35 2015 +0200

    Add patches/15_check_smtp_expect from upstream master branch
---
 debian/patches/15_check_smtp_expect | 28 ++++++++++++++++++++++++++++
 debian/patches/series               |  1 +
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/15_check_smtp_expect b/debian/patches/15_check_smtp_expect
new file mode 100644
index 0000000..9d88acb
--- /dev/null
+++ b/debian/patches/15_check_smtp_expect
@@ -0,0 +1,28 @@
+From b6de2341f8683d51b8723b772e4753507b1607f5 Mon Sep 17 00:00:00 2001
+From: Oliver Skibbe <oliskibbe at gmail.com>
+Date: Thu, 8 Oct 2015 09:04:29 +0200
+Subject: [PATCH] check_smtp.c: modified SSL check for use with -e
+
+  - currently STARTTLS check does not work with -e if there's text
+    like '220 hostname ESMTP*'. This is caused by SMTP answer from
+    host. Postfix answer: 220 2.0.0 Ready to start TLS, Exchange
+    2010: 220 2.0.0 SMTP server ready. This fix checks against 220
+
+    closes #1093
+---
+ plugins/check_smtp.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
+index 2e9b68b..1996c6d 100644
+--- a/plugins/check_smtp.c
++++ b/plugins/check_smtp.c
+@@ -231,7 +231,7 @@ main (int argc, char **argv)
+ 		  send(sd, SMTP_STARTTLS, strlen(SMTP_STARTTLS), 0);
+ 
+ 		  recvlines(buffer, MAX_INPUT_BUFFER); /* wait for it */
+-		  if (!strstr (buffer, server_expect)) {
++		  if (!strstr (buffer, SMTP_EXPECT)) {
+ 		    printf (_("Server does not support STARTTLS\n"));
+ 		    smtp_quit();
+ 		    return STATE_UNKNOWN;
diff --git a/debian/patches/series b/debian/patches/series
index d9ac7e3..ffb045a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
 12_check_ups_perf_data_hresholds
 13_check_snmp_timeout
 14_sslutils_superfluous_parenthesis
+15_check_smtp_expect

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-monitoring-plugins.git



More information about the Pkg-nagios-changes mailing list