diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-04-11 03:07:59 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-04-11 03:07:59 +0000 |
commit | 8dea00f889a5dbf1b5f67e6efafb75170993cb5d (patch) | |
tree | cbf9cfe58a40ddde8f5a423a63324f5be99b1a1b | |
parent | d6b81a591295cb50709f5cd6c21c4a9f80770a3e (diff) | |
download | monitoring-plugins-8dea00f889a5dbf1b5f67e6efafb75170993cb5d.tar.gz |
this should add support for check_ssmtp, based on the 1.3.x patch in 1155562,
but fixed to follow how things are done in 1.4 (using strdup instead of
asprintf) and patching configure.in instead of configure.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1159 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | plugins/check_tcp.c | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 8a5b096a..e2c79afb 100644 --- a/configure.in +++ b/configure.in | |||
@@ -467,7 +467,7 @@ else | |||
467 | fi | 467 | fi |
468 | 468 | ||
469 | if test "$FOUNDSSL" = "yes"; then | 469 | if test "$FOUNDSSL" = "yes"; then |
470 | check_tcp_ssl="check_simap check_spop check_jabber check_nntps" | 470 | check_tcp_ssl="check_simap check_spop check_jabber check_nntps check_ssmtp" |
471 | AC_SUBST(check_tcp_ssl) | 471 | AC_SUBST(check_tcp_ssl) |
472 | AC_SUBST(SSLLIBS) | 472 | AC_SUBST(SSLLIBS) |
473 | AC_DEFINE(HAVE_SSL,1,[Define if SSL libraries are found]) | 473 | AC_DEFINE(HAVE_SSL,1,[Define if SSL libraries are found]) |
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index a21572d1..979dfad8 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -189,6 +189,16 @@ main (int argc, char **argv) | |||
189 | use_ssl=TRUE; | 189 | use_ssl=TRUE; |
190 | PORT=995; | 190 | PORT=995; |
191 | } | 191 | } |
192 | else if (strstr(argv[0],"check_ssmtp")) { | ||
193 | progname = strdup ("check_ssmtp"); | ||
194 | SERVICE = strdup ("SSMTP"); | ||
195 | SEND=NULL; | ||
196 | EXPECT = strdup ("220"); | ||
197 | QUIT = strdup ("QUIT\r\n"); | ||
198 | PROTOCOL=TCP_PROTOCOL; | ||
199 | use_ssl=TRUE; | ||
200 | PORT=465; | ||
201 | } | ||
192 | else if (strstr(argv[0],"check_jabber")) { | 202 | else if (strstr(argv[0],"check_jabber")) { |
193 | progname = strdup("check_jabber"); | 203 | progname = strdup("check_jabber"); |
194 | SERVICE = strdup("JABBER"); | 204 | SERVICE = strdup("JABBER"); |