Hi people,

please I have been trying to work STONITH via apcmastersnmp module
with my APC7900 and after some time, I got it, applying OID fix in
apcmastersnmp.c from heartbeat-2.1.3 SRPM package (CentOS5.5).

#define OID_NUM_OUTLETS                 ". 
1.3.6.1.4.1.318.1.1.12.3.1.3.0"

[root@salina stonith]# stonith -t apcmastersnmp -p '172.27.xxx.xxx 161  
xxxx' -l

** (process:15094): WARNING **: apcmastersnmp_status: module not  
tested with this hardware 'AP7900'.
tomada1
tomada2
tomada3
tomada4
tomada5
tomada6
tomada7
tomada8


Well my problem is what parameters should I to put in hb_gui (outlet and
action for sample) to work this resource (apcmastersnmp), because the  
tool
only show me ipaddr, port and community... :-(


My cib.xml and ha.cf
  <cib generated="true" admin_epoch="0" epoch="105" num_updates="1"  
have_quorum="true" ignore_dtd="false" num_peers="1"  
cib_feature_revision="2.0" cib-last-written="Wed Feb 23 17:25:50 2011"  
ccm_transition="1" dc_uuid="906da381-379a-4b60-bca4-b534f2700ae4">
    <configuration>
      <crm_config>
        <cluster_property_set id="cib-bootstrap-options">
          <attributes>
            <nvpair id="cib-bootstrap-options-dc-version" name="dc- 
version" value="2.1.3-node: 552305612591183b1628baa5bc6e903e0f1e26a3"/>
          </attributes>
        </cluster_property_set>
      </crm_config>
      <nodes>
        <node id="906da381-379a-4b60-bca4-b534f2700ae4" uname="salina"  
type="normal"/>
      </nodes>
      <resources>
        <group id="group_radius">
          <meta_attributes id="group_radius_meta_attrs">
            <attributes>
              <nvpair id="group_radius_metaattr_target_role"  
name="target_role" value="started"/>
              <nvpair id="group_radius_metaattr_ordered"  
name="ordered" value="true"/>
              <nvpair id="group_radius_metaattr_collocated"  
name="collocated" value="true"/>
            </attributes>
          </meta_attributes>
          <primitive id="resource_IP" class="ocf" type="IPaddr"  
provider="heartbeat">
            <instance_attributes id="resource_IP_instance_attrs">
              <attributes>
                <nvpair id="9ca2d564-c90c-419b-9bf6-b9138c76201b"  
name="ip" value="200.198.xxx.xxx"/>
                <nvpair id="d2ab85dc-40db-47fe-b4d2-7e328939b1bf"  
name="cidr_netmask" value="255.255.255.255"/>
                <nvpair id="977fb92f-8db0-4558-8c9c-8d0152168b98"  
name="broadcast" value="200.198.xxx.xxx"/>
              </attributes>
            </instance_attributes>
            <operations>
              <op id="90c0b602-5f1f-4233-9a0e-1451994ee168"  
name="monitor" interval="5s" timeout="20s" start_delay="1s"  
disabled="false" role="Started" prereq="quorum" on_fail="restart"/>
            </operations>
          </primitive>
          <primitive id="resource_radius" class="lsb" type="radiusd"  
provider="heartbeat">
            <operations/>
            <meta_attributes id="resource_radius_meta_attrs">
              <attributes>
                <nvpair id="resource_radius_metaattr_target_role"  
name="target_role" value="started"/>
              </attributes>
            </meta_attributes>
          </primitive>
          <primitive id="resource_APC7900" class="stonith"  
type="apcmastersnmp" provider="heartbeat">
            <instance_attributes id="resource_APC7900_instance_attrs">
              <attributes>
                <nvpair id="7dd02711-750b-44e8-a21f-9873858880e4"  
name="ipaddr" value="172.27.xxx.xxx"/>
                <nvpair id="a30deed8-c342-4cfa-b2e2-398ee4069033"  
name="port" value="161"/>
                <nvpair id="8c85979c-ffef-4e06-9a7b-bf5f3f1d1b31"  
name="community" value="xxxx"/>
              </attributes>
            </instance_attributes>
          </primitive>
        </group>
      </resources>
      <constraints>
        <rsc_location id="location_radius" rsc="group_radius">
          <rule id="prefered_location_radius" score="100"  
boolean_op="and">
            <expression attribute="#uname" id="64ccf242-69cf-46fb-8421- 
e59bdb37cbf3" operation="eq" value="salina"/>
          </rule>
        </rsc_location>
      </constraints>
    </configuration>
  </cib>

logfacility local0
node salina flent
bcast eth1
crm on


Thank you.

--
Renan

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to