From 799a8550732dc6c2287b03579cce701748ec120f Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Thu, 19 Nov 2015 11:31:01 -0500 Subject: [PATCH] fix BUG #67 ldirectord no longer enabling HTTPS on brick heads --- templates/lvs/check_https | 4 ++++ templates/lvs/ldirectord.cf-footer | 3 +++ 2 files changed, 7 insertions(+) create mode 100755 templates/lvs/check_https diff --git a/templates/lvs/check_https b/templates/lvs/check_https new file mode 100755 index 0000000..46a53ab --- /dev/null +++ b/templates/lvs/check_https @@ -0,0 +1,4 @@ +#!/bin/sh + +/usr/bin/curl -k -m 25 -s --head --fail -o /dev/null https://$3:$4/ldirectorping.txt +exit $? diff --git a/templates/lvs/ldirectord.cf-footer b/templates/lvs/ldirectord.cf-footer index 2c7718d..475afc2 100644 --- a/templates/lvs/ldirectord.cf-footer +++ b/templates/lvs/ldirectord.cf-footer @@ -3,3 +3,6 @@ request="ldirectorping.txt" receive="pong" scheduler=wlc + checktimeout=30 + checktype=external + checkcommand="/usr/local/bin/check_https" -- 2.11.0