[Nagiosplug-devel] check_http Content-Type

Shawn Wills shawn at greymetalprimer.com
Fri Feb 20 09:11:23 CET 2004


I think 'T:' should be added to the call to getopt_long.

        while (1) {
               c = getopt_long (argc, argv, "Vvh46t:c:w:H:P:T:I:a:e:p:s:R:r:u:f:C:nlLSm:", longopts, &option);

I've attached a patch for check_http.c 1.56.

On Fri, 20 Feb 2004, Ton Voon wrote:

> 
> Patch looks good. Have applied it to check_http.c v1.56. It will not be 
> applied to r1.3.1 as this is only for bug fixes.
> 
> Can you please try out the latest snapshot to see if it is okay.
> 
> Ton
> 
-------------- next part --------------
--- nagiosplug/plugins/check_http.c	Thu Feb 19 21:47:17 2004
+++ nagiospluga/plugins/check_http.c	Fri Feb 20 08:36:54 2004
@@ -232,7 +232,7 @@
 	}
 
 	while (1) {
-		c = getopt_long (argc, argv, "Vvh46t:c:w:H:P:I:a:e:p:s:R:r:u:f:C:nlLSm:", longopts, &option);
+		c = getopt_long (argc, argv, "Vvh46t:c:w:H:P:T:I:a:e:p:s:R:r:u:f:C:nlLSm:", longopts, &option);
 		if (c == -1 || c == EOF)
 			break;
 


More information about the Devel mailing list