aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorfeld <feld@FreeBSD.org>2015-09-19 00:05:45 +0800
committerfeld <feld@FreeBSD.org>2015-09-19 00:05:45 +0800
commitaa63f2ed0600697bb73e9fd3795c4b9620c4c710 (patch)
tree201fa9a712a656a0cfdb6161673bcdaf3cb34117 /net-mgmt
parent92b546c563f9eea46c40d18a5c97610ce1d3d4c7 (diff)
downloadfreebsd-ports-gnome-aa63f2ed0600697bb73e9fd3795c4b9620c4c710.tar.gz
freebsd-ports-gnome-aa63f2ed0600697bb73e9fd3795c4b9620c4c710.tar.zst
freebsd-ports-gnome-aa63f2ed0600697bb73e9fd3795c4b9620c4c710.zip
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.
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/xymon-server/Makefile2
-rw-r--r--net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c36
2 files changed, 37 insertions, 1 deletions
diff --git a/net-mgmt/xymon-server/Makefile b/net-mgmt/xymon-server/Makefile
index f813f22389bd..441d1e72456d 100644
--- a/net-mgmt/xymon-server/Makefile
+++ b/net-mgmt/xymon-server/Makefile
@@ -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}
diff --git a/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c b/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c
new file mode 100644
index 000000000000..caeb3d6f008c
--- /dev/null
+++ b/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c
@@ -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: