<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
<TITLE>HTTPS and LVS</TITLE>
</HEAD>
<BODY>
In our lvs.cf, we have these attributes set in our https service:<BR>
<BR>
<BR>
<TT> expect = "200 OK"</TT><BR>
<TT> use_regex = 0</TT><BR>
<TT> send_program = "/usr/local/sbin/check_hrms_ssl.sh %h 8443"</TT><BR>
<BR>
<BR>
I crafted this script to check for https availability:<BR>
<BR>
<TT><B># cat /usr/local/sbin/check_hrms_ssl.sh</B></TT><BR>
<BR>
<TT>#!/bin/bash</TT><BR>
<BR>
<TT>HOST=$1</TT><BR>
<TT>PORT=$2</TT><BR>
<BR>
<TT>wget --no-check-certificate --spider -q https://${HOST}:${PORT} && echo "200 OK" || echo "404 Not Found"</TT><BR>
<TT>exit 0</TT><BR>
<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<HR LENGTH="40%">
<BR>
<BR>
<BR>
<B><FONT SIZE="1"><FONT COLOR="#000066">Robert Hurst, Sr. Caché Administrator</FONT></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#3333ff">Beth Israel Deaconess Medical Center</FONT></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#6666ff">1135 Tremont Street, REN-7</FONT></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#6666ff">Boston, Massachusetts 02120-2140</FONT></FONT></B><BR>
<B><FONT SIZE="1"><FONT COLOR="#6666ff">617-754-8754 ∙ Fax: 617-754-8730 ∙ Cell: 401-787-3154</FONT></FONT></B><BR>
<FONT SIZE="1"><FONT COLOR="#9999ff">Any technology distinguishable from <A HREF="http://www.mega-cart.com">magic</A> is insufficiently advanced.</FONT></FONT>
</TD>
</TR>
</TABLE>
<BR>
<BR>
On Fri, 2009-04-24 at 08:48 -0400, Stavros Charalambous wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
<FONT SIZE="2">Stavros Charalambous</FONT><BR>
<FONT SIZE="2">MCSE CCNP</FONT><BR>
<BR>
<FONT SIZE="2">Senior Systems Engineer</FONT><BR>
<FONT SIZE="2">Network Operations Center</FONT><BR>
<FONT SIZE="2">SpiderNet Services Ltd</FONT><BR>
<BR>
<FONT SIZE="2">Tel: +357 22 844 844</FONT><BR>
<FONT SIZE="2">Fax: +357 22 844760</FONT><BR>
<BR>
<BR>
<FONT SIZE="2"> I have tried to go live today with HTTPS in Piranha with lvs, and have failed miserabled.</FONT><BR>
<BR>
<FONT SIZE="2">HTTP seems to work fine though. Is there any specific procedure for this?</FONT><BR>
<BR>
<FONT SIZE="2">Stavros</FONT><BR>
<BR>
<FONT SIZE="2">_______________________________________________</FONT><BR>
<FONT SIZE="2">Piranha-list mailing list</FONT><BR>
<FONT SIZE="2">Piranha-list@redhat.com</FONT><BR>
<FONT SIZE="2"><A HREF="https://www.redhat.com/mailman/listinfo/piranha-list">https://www.redhat.com/mailman/listinfo/piranha-list</A></FONT><BR>
<BR>
<BR>
<BR>
</BLOCKQUOTE>
</BODY>
</HTML>