[Nagiosplug-checkins] CVS: nagiosplug/plugins check_tcp.c,1.4,1.5

Karl DeBisschop kdebisschop at users.sourceforge.net
Tue Oct 22 01:55:05 CEST 2002


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv14109/plugins

Modified Files:
	check_tcp.c 
Log Message:
add check_spop

Index: check_tcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_tcp.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** check_tcp.c	18 Oct 2002 03:48:53 -0000	1.4
--- check_tcp.c	22 Oct 2002 08:54:27 -0000	1.5
***************
*** 27,31 ****
  #define AUTHOR "Ethan Galstad"
  #define EMAIL "nagios at nagios.org"
! #define COPYRIGHTDATE "1999"
  
  #include "config.h"
--- 27,31 ----
  #define AUTHOR "Ethan Galstad"
  #define EMAIL "nagios at nagios.org"
! #define COPYRIGHTDATE "2002"
  
  #include "config.h"
***************
*** 164,171 ****
  		SEND=NULL;
  		EXPECT=strscpy(EXPECT,"* OK");
! 		QUIT=strscpy(QUIT,"a1 LOGOUT\n");
  		PROTOCOL=TCP_PROTOCOL;
  		use_ssl=TRUE;
  		PORT=993;
  	}
  #endif
--- 164,181 ----
  		SEND=NULL;
  		EXPECT=strscpy(EXPECT,"* OK");
! 		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





More information about the Commits mailing list