fix BUG #67 ldirectord no longer enabling HTTPS on brick heads
authorAndy Witter <awitter@georgialibraries.org>
Thu, 19 Nov 2015 16:31:01 +0000 (11:31 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Thu, 19 Nov 2015 16:31:01 +0000 (11:31 -0500)
templates/lvs/check_https [new file with mode: 0755]
templates/lvs/ldirectord.cf-footer

diff --git a/templates/lvs/check_https b/templates/lvs/check_https
new file mode 100755 (executable)
index 0000000..46a53ab
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+/usr/bin/curl -k -m 25 -s --head --fail -o /dev/null https://$3:$4/ldirectorping.txt
+exit $?
index 2c7718d..475afc2 100644 (file)
@@ -3,3 +3,6 @@
        request="ldirectorping.txt"
        receive="pong"
        scheduler=wlc
+       checktimeout=30
+        checktype=external
+        checkcommand="/usr/local/bin/check_https"