[Linux-HA] Re: Monitoring Apache
Karl W. Lewis
karl.w.lewis at gmail.com
Thu Jan 8 12:34:58 MST 2009
On Thu, Jan 8, 2009 at 1:30 PM, Thomas Mueller <thomas at chaschperli.ch>wrote:
> On Thu, 08 Jan 2009 10:26:27 -0500, Karl W. Lewis wrote:
> > I'm trying to create a three-node cluster of servers running Apache and
> > Tomcat. I *think* that because the Apache server runs only https the
> > heartbeat apache script will start Apache but never detects that it has
> > succeeded. I can use the lsb apache script, but then monitoring it
> > becomes an issue. Can anyone point me to a sample config that I might
> > shamelessly steal? Or suggest a way to enable heartbeat t omonitor my
> > Apache server?
> think you should at least post your config of the apache resource.
> mentioning the version of heartbeat and some log output would also not
> - Thomas
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> See also: http://linux-ha.org/ReportingProblems
I'm using heartbeat-2.1.3-3.el5.centos on a redhat 5, i386 system.
Trying to use ocf:
<primitive id="WebServerApache" class="ocf" type="apache"
<op id="WebServerApache_Mon" interval="60s" name="monitor"
<nvpair id="apache_status" name="target_role"
<nvpair id="apahce_config" name="apache_config"
This starts the webserver, but believes that it has failed; mostly, I think,
because it will never be able to find the "status" page that the ocf apache
script wants to find. (This server has a re-write rule that remaps the url
the the https address, regardless of how the user's browser got them to the
site.) I tried fiddling with the ocf apache script some, but all I managed
to do was break it.
Using just lsb:
<primitive id="WebServerApache" class="lsb" type="httpd" >
This starts the web server, but I'm not sure how to make heartbeat monitor
I understand that my question is ill-formed. I've watched a couple of the
video presentations and read through the slide shows, but I've been looking
for more definitive documentation and haven't been able to find it. I
understand O'Reilly Germany has a book on HeartBeat v2, but ignorant
U.S.-ian that I am, I can't hope to translate that, myself.
More information about the Linux-HA