<!-- $Header: emdb/sysman/admin/default_collection/cluster.xml /st_emdbsa_11.2/4 2009/04/26 16:47:05 ajdsouza Exp $ -->
<!DOCTYPE TargetCollection SYSTEM "../dtds/TargetCollection.dtd" [
<!ENTITY has_cluster_common_metrics SYSTEM "./hascluster.xmlp">
]>

<TargetCollection TYPE="cluster" >

 <CollectionItem NAME="ha_cls_intrconn" UPLOAD_ON_FETCH="TRUE" CONFIG="TRUE">
     <Schedule OFFSET_TYPE="INCREMENTAL">
      <IntervalSchedule INTERVAL = "12" TIME_UNIT = "Hr"/>
     </Schedule>
  </CollectionItem>
  

  <!--
  ====================================================================
  CRS alert reporting metric collection
  ====================================================================
  -->
  <CollectionItem NAME = "CRSAlert">
    <Schedule OFFSET_TYPE="INCREMENTAL">
      <IntervalSchedule INTERVAL = "5" TIME_UNIT = "Min"/>
    </Schedule>
    <MetricColl NAME="CRSAlert">
      <ItemProperty NAME="limitSwitch">250</ItemProperty>
      <Condition COLUMN_NAME="clusterwareErrStack"
                 WARNING="CRS-1601" OPERATOR="MATCH"
                 MESSAGE="%clusterwareErrStack% See %alertLogName% for details."
                 MESSAGE_NLSID="alertLog_cluster_crs_alertmessage"
                 NO_CLEAR_ON_NULL="TRUE" />
      <Condition COLUMN_NAME="ocrErrStack"
                 CRITICAL="CRS-(1006|1008|1010|1011)" WARNING="CRS-100(1|2|3|4|5|7)" OPERATOR="MATCH"
                 MESSAGE="%ocrErrStack% See %alertLogName% for details."
                 MESSAGE_NLSID="alertLog_crs_alertmessage"
                 NO_CLEAR_ON_NULL="TRUE" />
      <Condition COLUMN_NAME="nodeErrStack"
                 CRITICAL="CRS-1607" WARNING="CRS-180(2|3|4|5)" OPERATOR="MATCH"
                 MESSAGE="%nodeErrStack% See %alertLogName% for details."
                 MESSAGE_NLSID="alertLog_crs_alertmessage"
                 NO_CLEAR_ON_NULL="TRUE" />
      <Condition COLUMN_NAME="votingErrStack"
                 CRITICAL="CRS-160(4|5|6)" OPERATOR="MATCH"
                 MESSAGE="%votingErrStack% See %alertLogName% for details."
                 MESSAGE_NLSID="alertLog_crs_alertmessage"
                 NO_CLEAR_ON_NULL="TRUE" />

    </MetricColl>
  </CollectionItem>

 <!--
  ====================================================================
  CRS status metric collection
  ====================================================================
  -->
  <CollectionItem NAME = "CRSStatus">
    <Schedule OFFSET_TYPE="INCREMENTAL">
      <IntervalSchedule INTERVAL = "5" TIME_UNIT = "Min"/>
    </Schedule>
    <MetricColl NAME="CRSStatus">
        <Condition COLUMN_NAME="CRS_status"
               CRITICAL="0" WARNING="2" OPERATOR="EQ"
               CLEAR_MESSAGE="Clusterware is Up on this cluster."
               CLEAR_MESSAGE_NLSID="CRS_Status_clearalertmessage"
               MESSAGE="Clusterware has problems on all hosts of this cluster. %CRS_output%"
               MESSAGE_NLSID="CRS_status_alertmessage" />
        <Condition COLUMN_NAME="CRS_failed_node_count"
               CRITICAL="NotDefined" WARNING="0" OPERATOR="GT"
               MESSAGE="There are %CRS_failed_node_count% host(s) with Clusterware problems. %CRS_output%"
               MESSAGE_NLSID="CRS_failed_node_count_alertmessage" />
    </MetricColl>
  </CollectionItem>

 <!--
  ====================================================================
  CRS status metric collection
  ====================================================================
  -->
 <!--
  <CollectionItem NAME = "Response">
    <Schedule>
      <IntervalSchedule INTERVAL = "5" TIME_UNIT = "Min"/>
    </Schedule>
    <MetricColl NAME="Response">
        <Condition COLUMN_NAME="Status"
               CRITICAL="0" WARNING="2" OPERATOR="EQ"
               CLEAR_MESSAGE="Clusterware is Up on this cluster."
               CLEAR_MESSAGE_NLSID="CRS_Status_clearalertmessage"
               MESSAGE="Clusterware has problems on all hosts of this cluster. %CRS_output%"
               MESSAGE_NLSID="CRS_status_alertmessage" />
        <Condition COLUMN_NAME="CRS_failed_node_count"
               CRITICAL="NotDefined" WARNING="0" OPERATOR="GT"
               MESSAGE="There are %CRS_failed_node_count% host(s) with Clusterware problems. %CRS_output%"
               MESSAGE_NLSID="CRS_failed_node_count_alertmessage" />
    </MetricColl>
  </CollectionItem>
  -->

 <!--
  ====================================================================
  RAC database services metric collection
  ====================================================================
  -->
 <CollectionItem NAME="mgmt_rac_services" UPLOAD_ON_FETCH="TRUE" CONFIG="TRUE">
     <Schedule>
        <IntervalSchedule INTERVAL = "12" TIME_UNIT = "Hr"/>
     </Schedule>

     <MetricColl NAME="mgmt_rac_services"/>
  </CollectionItem>


  <!--
  ====================================================================
  VIP relocation metric collection
  ====================================================================
  -->
  <!--
  <CollectionItem NAME = "VIPRelocation" COLLECT_WHEN_DOWN="TRUE" UPLOAD_ON_FETCH="TRUE">

    <ValidIf>
      <CategoryProp NAME="CRSVersionCategory" CHOICES="11gR2"/>
    </ValidIf>

    <Schedule OFFSET_TYPE="INCREMENTAL">
      <IntervalSchedule INTERVAL="1" TIME_UNIT = "Hr"/>
    </Schedule>

    <MetricColl NAME="VIPRelocation">
      <ItemProperty NAME="eonsPort_static">2016</ItemProperty>

      <Condition 
        COLUMN_NAME="relocated" 
        OPERATOR="EQ"
        CRITICAL="TRUE"
        WARNING="NotDefined"
        MESSAGE="CRS resource %vip_name% was relocated to %current_node%"
        MESSAGE_NLSID="host_crs_resource_relocated" 
        NO_CLEAR_ON_NULL="FALSE"
      />

      <Condition PUSH="TRUE" 
        COLUMN_NAME="relocated" 
        OPERATOR="EQ"
        CRITICAL="TRUE"
        WARNING="NotDefined"
        MESSAGE="CRS resource %vip_name% was relocated to %current_node%"
        MESSAGE_NLSID="host_crs_resource_relocated" 
        NO_CLEAR_ON_NULL="FALSE"
      />

    </MetricColl>

  </CollectionItem>
  -->

<!--
===========================================================================
Collections for Metrics common for 11TB CRS  and SI HA Configuration BEGIN
===========================================================================
-->
  &has_cluster_common_metrics;
<!--
===========================================================================
Collections for Metrics common for 11TB CRS  and SI HA Configuration END
===========================================================================
-->

</TargetCollection>
