summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorOliver Skibbe <oliskibbe@gmail.com>2015-10-08 07:04:29 (GMT)
committerOliver Skibbe <oliskibbe@gmail.com>2015-10-08 07:04:29 (GMT)
commitb6de2341f8683d51b8723b772e4753507b1607f5 (patch)
tree79b9cad07ca68d6cd7850d9026db9bdc853a643d /plugins
parentdfe66c01c0b556dfbac9c1d901d3ba9ed6a1deac (diff)
downloadmonitoring-plugins-b6de2341f8683d51b8723b772e4753507b1607f5.tar.gz
check_smtp.c: modified SSL check for use with -erefs/pull/1379/head
- 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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_smtp.c2
1 files changed, 1 insertions, 1 deletions
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)
231 send(sd, SMTP_STARTTLS, strlen(SMTP_STARTTLS), 0); 231 send(sd, SMTP_STARTTLS, strlen(SMTP_STARTTLS), 0);
232 232
233 recvlines(buffer, MAX_INPUT_BUFFER); /* wait for it */ 233 recvlines(buffer, MAX_INPUT_BUFFER); /* wait for it */
234 if (!strstr (buffer, server_expect)) { 234 if (!strstr (buffer, SMTP_EXPECT)) {
235 printf (_("Server does not support STARTTLS\n")); 235 printf (_("Server does not support STARTTLS\n"));
236 smtp_quit(); 236 smtp_quit();
237 return STATE_UNKNOWN; 237 return STATE_UNKNOWN;