svn commit: r397257 - in head/net-mgmt/xymon-server: . files
Mark Felder
feld at FreeBSD.org
Fri Sep 18 16:05:46 UTC 2015
Author: feld
Date: Fri Sep 18 16:05:45 2015
New Revision: 397257
URL: https://svnweb.freebsd.org/changeset/ports/397257
Log:
Add patch to fix http monitoring
401 and 403 errors were mistakenly hardcoded to return "green" status
I'm working with upstream on cleaning up these checks. I expect to see
an improvement in 4.3.22.
Added:
head/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c (contents, props changed)
Modified:
head/net-mgmt/xymon-server/Makefile
Modified: head/net-mgmt/xymon-server/Makefile
==============================================================================
--- head/net-mgmt/xymon-server/Makefile Fri Sep 18 15:47:07 2015 (r397256)
+++ head/net-mgmt/xymon-server/Makefile Fri Sep 18 16:05:45 2015 (r397257)
@@ -2,7 +2,7 @@
PORTNAME= xymon
PORTVERSION= 4.3.21
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-mgmt www
MASTER_SITES= SF/xymon/Xymon/${PORTVERSION}
PKGNAMESUFFIX= -server${PKGNAMESUFFIX2}
Added: head/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c Fri Sep 18 16:05:45 2015 (r397257)
@@ -0,0 +1,36 @@
+Index: xymonnet/httpresult.c
+===================================================================
+--- xymonnet/httpresult.c (revision 7670)
++++ xymonnet/httpresult.c (working copy)
+@@ -36,13 +36,26 @@
+ 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 ? */
++ case 200:
++ case 201:
++ case 202:
++ case 203:
++ case 204:
++ case 205:
++ case 206:
++ case 301:
++ case 302:
++ case 303:
++ case 307:
+ result = COL_GREEN;
+ break;
+- case 400: case 404: case 405: case 406:
+- result = COL_RED; /* Trouble getting page */
++ case 400:
++ case 401:
++ case 403: /* Trouble getting page */
++ case 404:
++ case 405:
++ case 406:
++ result = COL_RED;
+ break;
+ case 500:
+ case 501:
More information about the svn-ports-all
mailing list