Hi, On Tue, Mar 01, 2011 at 10:40:38AM +0000, John Lee wrote: > Hello there, > I'm trying to monitor two apache instances with heartbeat v2.1.3.
That version is ancient. Do everybody favour and upgrade to pacemaker (plus heartbeat or corosync). > Extract from cib.xml: > ... > <group id="vip_group_apache"> > <primitive id="apache_vip" class="ocf" type="IPaddr2" > provider="heartbeat"> > <instance_attributes id="apache_ia_vip"> > <attributes> > <nvpair id="apache_vip_ip" name="ip" value="10.95.32.116"/> > </attributes> > </instance_attributes> > </primitive> > <primitive id="apache" class="ocf" type="apache" > provider="heartbeat"> > <operations> > <op id="apache_mon" interval="5s" name="monitor" timeout="5s"/> > </operations> > <instance_attributes id="apache_inst_attrs"> > <attributes> > <nvpair id="apache_config" name="configfile" > value="/opt/nid-service/http-gw/peru/mms/conf/httpd.conf"/> > <nvpair id="apache_path" name="httpd" > value="/opt/nid-service/http-gw/apache2/bin/httpd"/> > <nvpair id="apache_port" name="port" value="8585"/> > <nvpair id="apache_options" name="options" value="-f"/> > </attributes> > </instance_attributes> > </primitive> > </group> > ... > > [root@p1-vbu1-slot1 heartbeat]# crm_resource -LVV > crm_resource[3867]: 2011/03/01_05:39:56 info: determine_online_status: Node > p1-vbu2-slot1 is online > crm_resource[3867]: 2011/03/01_05:39:56 WARN: unpack_rsc_op: Processing > failed op apache_start_0 on p1-vbu2-slot1: Timed Out > crm_resource[3867]: 2011/03/01_05:39:56 WARN: unpack_rsc_op: Compatability > handling for failed op apache_start_0 on p1-vbu2-slot1 > crm_resource[3867]: 2011/03/01_05:39:56 info: determine_online_status: Node > p1-vbu1-slot1 is online > crm_resource[3867]: 2011/03/01_05:39:56 WARN: unpack_rsc_op: Processing > failed op apache_start_0 on p1-vbu1-slot1: Timed Out > crm_resource[3867]: 2011/03/01_05:39:56 WARN: unpack_rsc_op: Compatability > handling for failed op apache_start_0 on p1-vbu1-slot1 > crm_resource[3867]: 2011/03/01_05:39:56 WARN: main: here i am - 3 > Resource Group: vip_group > vip (heartbeat::ocf:IPaddr2) > Resource Group: vip_group_apache > apache_vip (heartbeat::ocf:IPaddr2) > apache (heartbeat::ocf:apache) > > [root@p1-vbu1-slot1 heartbeat]# /usr/lib/ocf/resource.d/heartbeat/apache > validate-all > 2011/03/01_05:03:39 ERROR: Cannot parse config file > [/etc/apache2/httpd.conf] > > Any ideas? I thought it should read the config file from cib.xml? Yes, but how it is to read cib.xml? Resource agents get that information via environment, so you'd have to replicate it: OCF_RESKEY_configfile=... /usr/lib/ocf/.../apache Thanks, Dejan > BRs //John. > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
