[Nagiosplug-checkins] CVS: nagiosplug/plugins check_http.c,1.26,1.27

Jeremy T. Bouse undrgrid at users.sourceforge.net
Tue Mar 11 18:26:10 CET 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv30608/plugins

Modified Files:
	check_http.c 
Log Message:
Code clean-up


Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** check_http.c	11 Mar 2003 22:22:10 -0000	1.26
--- check_http.c	12 Mar 2003 02:25:57 -0000	1.27
***************
*** 821,825 ****
  	if (strlen (string_expect)) {
  		if (strstr (page, string_expect)) {
! 			printf ("HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n",
  			        status_line, elapsed_time,
  			        timestamp, (display_html ? "</A>" : ""), elapsed_time);
--- 821,825 ----
  	if (strlen (string_expect)) {
  		if (strstr (page, string_expect)) {
! 			printf ("HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n",
  			        status_line, elapsed_time,
  			        timestamp, (display_html ? "</A>" : ""), elapsed_time);
***************
*** 836,840 ****
  		errcode = regexec (&preg, page, REGS, pmatch, 0);
  		if (errcode == 0) {
! 			printf ("HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n",
  			        status_line, elapsed_time,
  			        timestamp, (display_html ? "</A>" : ""), elapsed_time);
--- 836,840 ----
  		errcode = regexec (&preg, page, REGS, pmatch, 0);
  		if (errcode == 0) {
! 			printf ("HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n",
  			        status_line, elapsed_time,
  			        timestamp, (display_html ? "</A>" : ""), elapsed_time);
***************
*** 864,868 ****
  	}
  	/* We only get here if all tests have been passed */
! 	asprintf (&msg, "HTTP ok: %s - %7.3f second response time %s%s|time=%7.3f\n",
  	                status_line, (float)elapsed_time,
  	                timestamp, (display_html ? "</A>" : ""), elapsed_time);
--- 864,868 ----
  	}
  	/* We only get here if all tests have been passed */
! 	asprintf (&msg, "HTTP OK %s - %7.3f second response time %s%s|time=%7.3f\n",
  	                status_line, (float)elapsed_time,
  	                timestamp, (display_html ? "</A>" : ""), elapsed_time);





More information about the Commits mailing list