check_smtp.c: modified SSL check for use with -e (#1378)

Oliver Skibbe notifications at github.com
Thu Oct 8 07:45:18 CEST 2015


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 introduces a constant for '220 2.0.0' which is used to check if TLS
connection is ok

Closes #1093 
You can view, comment on, or merge this pull request online at:

  https://github.com/monitoring-plugins/monitoring-plugins/pull/1378

-- Commit Summary --

  * check_smtp.c: modified SSL check for use with -e

-- File Changes --

    M NEWS (4)
    M plugins-scripts/Makefile.am (1)
    M plugins/check_http.c (22)
    M plugins/check_smtp.c (14)
    M plugins/netutils.h (10)
    M plugins/sslutils.c (81)

-- Patch Links --

https://github.com/monitoring-plugins/monitoring-plugins/pull/1378.patch
https://github.com/monitoring-plugins/monitoring-plugins/pull/1378.diff

-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/pull/1378
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20151007/2bd57a03/attachment.html>


More information about the Devel mailing list