diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_tcp.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index 2822940e..f463a776 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #define DESCRIPTION "Check a TCP port" | 26 | #define DESCRIPTION "Check a TCP port" |
27 | #define AUTHOR "Ethan Galstad" | 27 | #define AUTHOR "Ethan Galstad" |
28 | #define EMAIL "nagios@nagios.org" | 28 | #define EMAIL "nagios@nagios.org" |
29 | #define COPYRIGHTDATE "1999" | 29 | #define COPYRIGHTDATE "2002" |
30 | 30 | ||
31 | #include "config.h" | 31 | #include "config.h" |
32 | #include "common.h" | 32 | #include "common.h" |
@@ -163,11 +163,21 @@ main (int argc, char **argv) | |||
163 | SERVICE=strscpy(SERVICE,"SIMAP"); | 163 | SERVICE=strscpy(SERVICE,"SIMAP"); |
164 | SEND=NULL; | 164 | SEND=NULL; |
165 | EXPECT=strscpy(EXPECT,"* OK"); | 165 | EXPECT=strscpy(EXPECT,"* OK"); |
166 | QUIT=strscpy(QUIT,"a1 LOGOUT\n"); | 166 | QUIT=strscpy(QUIT,"a1 LOGOUT\r\n"); |
167 | PROTOCOL=TCP_PROTOCOL; | 167 | PROTOCOL=TCP_PROTOCOL; |
168 | use_ssl=TRUE; | 168 | use_ssl=TRUE; |
169 | PORT=993; | 169 | PORT=993; |
170 | } | 170 | } |
171 | else if (strstr(argv[0],"check_spop")) { | ||
172 | PROGNAME=strscpy(PROGNAME,"check_spop"); | ||
173 | SERVICE=strscpy(SERVICE,"SPOP"); | ||
174 | SEND=NULL; | ||
175 | EXPECT=strscpy(EXPECT,"110"); | ||
176 | QUIT=strscpy(QUIT,"QUIT\r\n"); | ||
177 | PROTOCOL=TCP_PROTOCOL; | ||
178 | use_ssl=TRUE; | ||
179 | PORT=995; | ||
180 | } | ||
171 | #endif | 181 | #endif |
172 | else if (strstr (argv[0], "check_nntp")) { | 182 | else if (strstr (argv[0], "check_nntp")) { |
173 | PROGNAME = strscpy (PROGNAME, "check_nntp"); | 183 | PROGNAME = strscpy (PROGNAME, "check_nntp"); |