]> git.tokkee.org Git - nagiosplug.git/commitdiff

Code

this should add support for check_ssmtp, based on the 1.3.x patch in 1155562,
authorM. Sean Finney <seanius@users.sourceforge.net>
Mon, 11 Apr 2005 03:07:59 +0000 (03:07 +0000)
committerM. Sean Finney <seanius@users.sourceforge.net>
Mon, 11 Apr 2005 03:07:59 +0000 (03:07 +0000)
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

configure.in
plugins/check_tcp.c

index 8a5b096a4e49aae7268472d5bba51434f1952f35..e2c79afb57d2cb6285ae9cf50b745d046afc031d 100644 (file)
@@ -467,7 +467,7 @@ else
 fi
 
 if test "$FOUNDSSL" = "yes"; then
-  check_tcp_ssl="check_simap check_spop check_jabber check_nntps"
+  check_tcp_ssl="check_simap check_spop check_jabber check_nntps check_ssmtp"
   AC_SUBST(check_tcp_ssl)
   AC_SUBST(SSLLIBS)
   AC_DEFINE(HAVE_SSL,1,[Define if SSL libraries are found])
index a21572d113c36a6908f42243ede301a0e1201953..979dfad88b0a19aba789d4084d9b56857dca931e 100644 (file)
@@ -189,6 +189,16 @@ main (int argc, char **argv)
                use_ssl=TRUE;
                PORT=995;
        }
+       else if (strstr(argv[0],"check_ssmtp")) {
+               progname = strdup ("check_ssmtp");
+               SERVICE = strdup ("SSMTP");
+               SEND=NULL;
+               EXPECT = strdup ("220");
+               QUIT = strdup ("QUIT\r\n");
+               PROTOCOL=TCP_PROTOCOL;
+               use_ssl=TRUE;
+               PORT=465;
+       }
        else if (strstr(argv[0],"check_jabber")) {
                progname = strdup("check_jabber");
                SERVICE = strdup("JABBER");