[Nagiosplug-devel] [ nagiosplug-Bugs-1155562 ] check_tcp doesn't support ssmtp
SourceForge.net
noreply at sourceforge.net
Wed Mar 2 19:36:44 CET 2005
Bugs item #1155562, was opened at 2005-03-02 19:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
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
----------------------------------------------------------------------
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