aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_tcp.c
diff options
context:
space:
mode:
authorGravatar M. Sean Finney <seanius@users.sourceforge.net> 2005-04-11 03:07:59 +0000
committerGravatar M. Sean Finney <seanius@users.sourceforge.net> 2005-04-11 03:07:59 +0000
commit8dea00f889a5dbf1b5f67e6efafb75170993cb5d (patch)
treecbf9cfe58a40ddde8f5a423a63324f5be99b1a1b /plugins/check_tcp.c
parentd6b81a591295cb50709f5cd6c21c4a9f80770a3e (diff)
downloadmonitoring-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
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r--plugins/check_tcp.c10
1 files changed, 10 insertions, 0 deletions
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)
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");