[Nagiosplug-checkins] nagiosplug/plugins check_tcp.c,1.61,1.62
M. Sean Finney
seanius at users.sourceforge.net
Sun Apr 10 20:09:33 CEST 2005
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16900/plugins
Modified Files:
check_tcp.c
Log Message:
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.
Index: check_tcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- check_tcp.c 30 Dec 2004 00:41:40 -0000 1.61
+++ check_tcp.c 11 Apr 2005 03:07:59 -0000 1.62
@@ -189,6 +189,16 @@
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");
More information about the Commits
mailing list