summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa01859)
raw | patch | inline | side by side (parent: aa01859)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Tue, 22 Oct 2002 08:54:27 +0000 (08:54 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Tue, 22 Oct 2002 08:54:27 +0000 (08:54 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@156 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_tcp.c | patch | blob | history |
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 2822940ebf5dc393244fa127867e7655a8f1b3ef..f463a776fa1666b59b2126df796565b92e6128c7 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
#define DESCRIPTION "Check a TCP port"
#define AUTHOR "Ethan Galstad"
#define EMAIL "nagios@nagios.org"
-#define COPYRIGHTDATE "1999"
+#define COPYRIGHTDATE "2002"
#include "config.h"
#include "common.h"
SERVICE=strscpy(SERVICE,"SIMAP");
SEND=NULL;
EXPECT=strscpy(EXPECT,"* OK");
- QUIT=strscpy(QUIT,"a1 LOGOUT\n");
+ QUIT=strscpy(QUIT,"a1 LOGOUT\r\n");
PROTOCOL=TCP_PROTOCOL;
use_ssl=TRUE;
PORT=993;
}
+ else if (strstr(argv[0],"check_spop")) {
+ PROGNAME=strscpy(PROGNAME,"check_spop");
+ SERVICE=strscpy(SERVICE,"SPOP");
+ SEND=NULL;
+ EXPECT=strscpy(EXPECT,"110");
+ QUIT=strscpy(QUIT,"QUIT\r\n");
+ PROTOCOL=TCP_PROTOCOL;
+ use_ssl=TRUE;
+ PORT=995;
+ }
#endif
else if (strstr (argv[0], "check_nntp")) {
PROGNAME = strscpy (PROGNAME, "check_nntp");