[Nagiosplug-devel] [ nagiosplug-Bugs-1155562 ] check_tcp doesn't support ssmtp

SourceForge.net noreply at sourceforge.net
Sun Apr 10 20:14:31 CEST 2005


Bugs item #1155562, was opened at 2005-03-02 22:34
Message generated for change (Comment added) made by seanius
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1155562&group_id=29880

Category: None
Group: CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Quanah Gibson-Mount (mishikal)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_tcp doesn't support ssmtp

Initial Comment:
check_tcp doesn't support check_ssmtp as a protocol
check.  Stanford has developed a patch allowing this:

--- nagios-plugins-1.3.1/plugins/check_tcp.c.orig     
 2003-06-09 21:56:47.000001000 -0700
+++ nagios-plugins-1.3.1/plugins/check_tcp.c   
2003-12-10 19:07:58.000001000 -0800
@@ -179,10 +179,34 @@
                asprintf (&QUIT, "QUIT\r\n");
                PROTOCOL=TCP_PROTOCOL;
                use_ssl=TRUE;
                PORT=995;
        }
+       else if (strstr(argv[0],"check_ssmtp")) {
+               asprintf (&progname, "check_ssmtp");
+               asprintf (&SERVICE, "SSMTP");
+               SEND=NULL;
+               asprintf (&EXPECT, "220");
+               asprintf (&QUIT, "QUIT\r\n");
+               PROTOCOL=TCP_PROTOCOL;
+               use_ssl=TRUE;
+               PORT=465;
+       }
+       else if (strstr (argv[0], "check_nntps")) {
+               asprintf (&progname, "check_nntps");
+               asprintf (&SERVICE, "NNTPS");
+               SEND = NULL;
+               EXPECT = NULL;
+               server_expect = realloc (server_expect,
++server_expect_count);
+               asprintf
(&server_expect[server_expect_count - 1], "200");
+               server_expect = realloc (server_expect,
++server_expect_count);
+               asprintf
(&server_expect[server_expect_count - 1], "201");
+               asprintf (&QUIT, "QUIT\r\n");
+               PROTOCOL = TCP_PROTOCOL;
+        use_ssl=TRUE;
+               PORT = 563;
+       }
 #endif
        else if (strstr (argv[0], "check_nntp")) {
                asprintf (&progname, "check_nntp");
                asprintf (&SERVICE, "NNTP");
                SEND = NULL;



--- nagios-plugins-1.3.1/configure.orig 2003-07-10
23:30:56.000001000 -0700
+++ nagios-plugins-1.3.1/configure      2003-12-10
18:55:57.000001000 -0800
@@ -8383,11 +8383,11 @@
 LIBS="$_SAVEDLIBS"

 if test "$ac_cv_lib_crypto_CRYPTO_lock" = "yes"; then
   if test "$ac_cv_lib_ssl_main" = "yes"; then
     if test "$FOUNDINCLUDE" = "yes"; then
-      check_tcp_ssl="check_simap check_spop"
+      check_tcp_ssl="check_simap check_spop
check_ssmtp check_nntps"



 cat >>confdefs.h <<\_ACEOF
 #define HAVE_SSL 1


----------------------------------------------------------------------

Comment By: M. Sean Finney (seanius)
Date: 2005-04-10 23:13

Message:
Logged In: YES 
user_id=226838

i've submitted a modified  version of this patch into cvs.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1155562&group_id=29880




More information about the Devel mailing list