diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-10-22 08:54:27 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-10-22 08:54:27 +0000 |
commit | e5542d2f72332ed363b769d07dbf5acce439120b (patch) | |
tree | b16ea3d817fcd703436b0bfd6965e8b1f724a7fb | |
parent | aa01859947d82ea8df23a9258fbbbb21dae7f76e (diff) | |
download | monitoring-plugins-e5542d2f72332ed363b769d07dbf5acce439120b.tar.gz |
add check_spop
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@156 f882894a-f735-0410-b71e-b25c423dba1c
-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 @@ #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" @@ -163,11 +163,21 @@ main (int argc, char **argv) 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"); |