[hobbit] Http "forbidden" errors
Frédéric Mangeant
frederic.mangeant at steria.com
Fri Jun 9 15:39:13 CEST 2006
Larry Barber a écrit :
> Henrik, I currently have an http test that is getting a "403
> Forbidden" response. Hobbit is not marking this as an error. Would it
> be possible to have Hobbit treat a "Forbidden" response as an error
> and alert on it?
Hi
in bbnet/httpresult.c there's this :
switch(status) {
case 000: /* transportlayer reports error */
result = (h->dialup ? COL_CLEAR : COL_RED);
break;
case 100: /* Continue - should be ok */
case 200: case 201: case 202: case 203: case 204: case 205:
case 206:
case 301: case 302: case 303: case 307:
case 401: case 403: /* Is "Forbidden" an OK status ? */
result = COL_GREEN;
break;
case 400: case 404: case 405: case 406:
result = COL_RED; /* Trouble getting page */
break;
case 500:
case 501:
case 502: /* Proxy error */
case 503:
case 504:
case 505:
result = COL_RED; /* Server error */
break;
You can modify it and rebuild your Hobbit server.
--
Frédéric Mangeant
Steria EDC Sophia-Antipolis
More information about the Xymon
mailing list