On Thu, Jan 8, 2009 at 1:30 PM, Thomas Mueller <[email protected]>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 > hurt. > > - Thomas > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > Oh. Right. I'm using heartbeat-2.1.3-3.el5.centos on a redhat 5, i386 system. Trying to use ocf: <resources> <primitive id="WebServerApache" class="ocf" type="apache" provider="heartbeat"> <operations> <op id="WebServerApache_Mon" interval="60s" name="monitor" timeout="120s"/> </operations> <instance_attributes id="WebServerApache_inst_attr"> <attributes> <nvpair id="apache_status" name="target_role" value="started"/> <nvpair id="apahce_config" name="apache_config" value="/etc/httpd/conf/httpd.conf"/> </attributes> </instance_attributes> </primitive> </resources> 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: <resources> <primitive id="WebServerApache" class="lsb" type="httpd" > </primitive> </resources> This starts the web server, but I'm not sure how to make heartbeat monitor it, then. 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. Karl _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
