<!-- $Header: host.xml 01-apr-2008.07:48:49 cgnanasa Exp $ -->
<!DOCTYPE TargetCollection SYSTEM "../dtds/TargetCollection.dtd" [
<!ENTITY single_instance_ha_metric_collections SYSTEM "./si_ha.xmlp">
]>

<TargetCollection TYPE="host" >

  <CollectionItem NAME = "Inventory" UPLOAD_ON_FETCH = "TRUE" TIMEOUT = "3600" PRELOAD_PROC="MGMT_PROVISION.PRELOAD_CALLBACK">
     <Schedule OFFSET_TYPE="INCREMENTAL">
        <IntervalSchedule INTERVAL = "24" TIME_UNIT = "Hr"/>
     </Schedule>
     <MetricColl NAME="Inventory" />
  </CollectionItem>

  <CollectionItem NAME = "Load">
     <Schedule OFFSET_TYPE="INCREMENTAL" >
        <IntervalSchedule INTERVAL = "5" TIME_UNIT = "Min"/>
     </Schedule>
     <Condition COLUMN_NAME="cpuUtil"
                CRITICAL="95" WARNING="80" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="CPU Utilization is %value%%%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_cpuIdle_10_2_cond"
                CLEAR_MESSAGE="CPU Utilization is %value%%%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_load_cpuIdle_10_2_cond_clear"/>
     <Condition COLUMN_NAME="swapUtil"
                CRITICAL="95" WARNING="80" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Swap Utilization is %value%%%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_swapUtil_10_2_cond"
                CLEAR_MESSAGE="Swap Utilization is %value%%%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_load_swapUtil_10_2_cond_clear"/>
     <Condition COLUMN_NAME="memUsedPct"
                CRITICAL="95" WARNING="80" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Memory Utilization is %value%%%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_memUsedPct_10_2_cond"
                CLEAR_MESSAGE="Memory Utilization is %value%%%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_load_memUsedPct_10_2_cond_clear"/>
     <Condition COLUMN_NAME="cpuIOWait"
                CRITICAL="80" WARNING="40" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="CPU I/O Wait is %value%%%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_cpuIOWait_10_2_cond"
                CLEAR_MESSAGE="CPU I/O Wait is %value%%%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_load_cpuIOWait_10_2_cond_clear"/>
     <Condition COLUMN_NAME="cpuLoad"
                CRITICAL="20" WARNING="10" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="CPU Load (Run Queue Length averaged over 5 minutes) is %value%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_cpuLoad_10_2_cond"
                CLEAR_MESSAGE="CPU Load (Run Queue Length averaged over 5 minutes) is %value%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_load_cpuLoad_10_2_cond_clear"/>
     <Condition COLUMN_NAME="pgScanRate"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Page scan rate is %value% /sec, crossed warning (%warning_threshold% /sec) or critical (%critical_threshold% /sec) threshold."
                MESSAGE_NLSID="host_load_pgscanrate_10_2_cond"
                CLEAR_MESSAGE="Page scan rate is %value% /sec, fallen below warning (%warning_threshold% /sec) and critical (%critical_threshold% /sec) threshold."
                CLEAR_MESSAGE_NLSID="host_load_pgscanrate_10_2_cond_clear"/>
      <Condition COLUMN_NAME="totIO"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Disk totIO %value%,  crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_totIO_cond"
                CLEAR_MESSAGE="Disk totIO %value%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_load_totIO_cond_clear"/>
   <Condition COLUMN_NAME="cpuLoad_1min"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="CPU Load (Run Queue Length averaged over 1 minute) is %value%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_cpuLoad_1min_cond"
                CLEAR_MESSAGE="CPU Load (Run Queue Length averaged over 1 minute) is %value%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_load_cpuLoad_1min_cond_clear"/>
     <Condition COLUMN_NAME="cpuLoad_15min"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="CPU Load (Run Queue Length averaged over 15 minutes) is %value%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_cpuLoad_15min_cond"
                CLEAR_MESSAGE="CPU Load (Run Queue Length averaged over 15 minutes)  is %value%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_load_cpuLoad_15min_cond_clear"/>
    <Condition COLUMN_NAME="noOfProcs"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Number of processes is %value%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_nprocs_cond"
                CLEAR_MESSAGE="Number of processes is %value%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_load_nprocs_cond_clear"/>
     <Condition COLUMN_NAME="noOfUsers"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Number of users is %value%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_nusers_cond"
                CLEAR_MESSAGE="Number of users is %value%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_load_nusers_cond_clear"/>
     <Condition COLUMN_NAME="freeMem"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="LT"
                OCCURRENCES="6"
                MESSAGE="Free Memory Size %value%, gone below the warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_freeMem_cond"
                CLEAR_MESSAGE="Free Memory Size %value%, gone above the warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_load_freeMem_cond_clear"/>
     <Condition COLUMN_NAME="usedSwap"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Swap Utilization %value% KB, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_swap_cond"
                CLEAR_MESSAGE="Swap Utilization %value% KB, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) threshold."
                CLEAR_MESSAGE_NLSID="host_load_swap_cond_clear"/>
    <Condition COLUMN_NAME="pgScanRate"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="PageScan Rate, %value%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_pgscan_cond"
                CLEAR_MESSAGE="PageScan Rate, %value%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) threshold."
                CLEAR_MESSAGE_NLSID="host_load_pgscan_cond_clear"/>
    <Condition COLUMN_NAME="freeSwap"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="LT"
                OCCURRENCES="6"
                MESSAGE="Free Swap, %value% KB, gone below warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_freeswap_cond"
                CLEAR_MESSAGE="Free Swap, %value% KB, gone above warning (%warning_threshold%) and critical (%critical_threshold%) threshold."/>
    <Condition COLUMN_NAME="memfreePct"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="LT"
                OCCURRENCES="6"
                MESSAGE="Free Memory, %value%%%, gone below warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_freememper_cond"
                CLEAR_MESSAGE="Free Memory, %value%%%,  gone above warning (%warning_threshold%) and critical (%critical_threshold%) threshold."
                CLEAR_MESSAGE_NLSID="host_load_freememper_cond_clear"/>
      <Condition COLUMN_NAME="cpuUser"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="CPU in User Mode, %value%%%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_cpuuser_cond"
                CLEAR_MESSAGE="CPU in User Mode, %value%%%,  fallen below warning (%warning_threshold%) and critical (%critical_threshold%) threshold."
                CLEAR_MESSAGE_NLSID="host_load_cpuuser_cond_clear"/>
      <Condition COLUMN_NAME="cpuKernel"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="CPU in Kernel Mode, %value%%%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_load_cpukernel_cond"
                CLEAR_MESSAGE="CPU in Kernel Mode, %value%%%,  fallen below warning (%warning_threshold%) and critical (%critical_threshold%) threshold."
                CLEAR_MESSAGE_NLSID="host_load_cpukernel_cond_clear"/>

  </CollectionItem>

  <CollectionItem NAME = "Network">
     <Schedule>
        <IntervalSchedule INTERVAL = "5" TIME_UNIT = "Min"/>
     </Schedule>
     <Condition COLUMN_NAME="totalThroughput"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Network utilization for %keyvalue% is %value%%%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_network_totalThroughput_10_2cond"
                CLEAR_MESSAGE="Network utilization for %keyvalue% is %value%%%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_network_totalThroughput_10_2_cond_clear"/>
     <Condition COLUMN_NAME="totalRate"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Network I/O Rate for %keyvalue% is %value%MB/Sec, crossed warning (%warning_threshold%MB/Sec) or critical (%critical_threshold%MB/Sec) threshold."
                MESSAGE_NLSID="host_network_totalRate_10_2_cond"
                CLEAR_MESSAGE="Network I/O Rate for %keyvalue% is %value%MB/Sec, fallen below warning (%warning_threshold%MB/Sec) and critical (%critical_threshold%MB/Sec) thresholds."
                CLEAR_MESSAGE_NLSID="host_network_totalRate_10_2_cond_clear"/>

     <Condition COLUMN_NAME="totalErrorRate"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Network Error Rate for %keyvalue% is %value%%%, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_network_totalErrorRate_10_2_cond"
                CLEAR_MESSAGE="Network Error Rate for %keyvalue% is %value%%%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_network_totalErrorRate_10_2_cond_clear"/>
  </CollectionItem>

  <CollectionItem NAME = "Filesystems" UPLOAD="24">
     <Schedule>
        <IntervalSchedule INTERVAL = "15" TIME_UNIT = "Min"/>
     </Schedule>
     <Condition COLUMN_NAME="pctAvailable"
                CRITICAL="5" WARNING="20" OPERATOR="LT"
                MESSAGE="Filesystem %keyValue% has %value%%% available space, fallen below warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_filesys_pctAvailable_10_2_cond"
                CLEAR_MESSAGE="Filesystem %keyValue% has %value%%% available space, went above warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_filesys_pctAvailable_10_2_cond_clear" />
  </CollectionItem>

  <CollectionItem NAME = "DiskActivity" >
     <Schedule>
        <IntervalSchedule INTERVAL = "15" TIME_UNIT = "Min"/>
     </Schedule>
<!-- does not apply to Linux (bug#3934333) -->
<!-- the commenting is supposed to be done only for Linux. hence uncommenting.bug#6924370  -->
     <Condition COLUMN_NAME="DiskActivitybusy"
                CRITICAL="95" WARNING="80" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Disk Utilization for %keyValue% is %value%%%"
                MESSAGE_NLSID="host_disk_activity_busy_cond"/>
     <Condition COLUMN_NAME="DiskActivityavserv"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Average service time for disk %keyvalue% is %value% ms, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_disk_activity_avrun_10_2_cond"
                CLEAR_MESSAGE="Average service time for disk %keyvalue% is %value% ms, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                CLEAR_MESSAGE_NLSID="host_disk_activity_avrun_10_2_cond_clear"/>
<!-- does not apply to Linux (bug#3934333) -->
<!-- the commenting is supposed to be done only for Linux. hence uncommenting.bug#6924370  -->
     <Condition COLUMN_NAME="DiskActivityavwait"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Average wait time for disk %keyvalue% is %value% ms"
                MESSAGE_NLSID="host_disk_activity_avwait_cond"/>
  </CollectionItem>
  <CollectionItem NAME = "PagingActivity">
     <Schedule>
        <IntervalSchedule INTERVAL = "15" TIME_UNIT = "Min"/>
     </Schedule>
    <Condition COLUMN_NAME="PagingActivityppgout"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Pages Paged-out (per second) %value%, has crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_pa_pgout_cond"
				CLEAR_MESSAGE="Pages Paged-out (per second) %value%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) threshold."
				CLEAR_MESSAGE_NLSID="host_pa_pgout_cond_clear"/>
    <Condition COLUMN_NAME="PagingActivitypgscan"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="6"
                MESSAGE="Pages Paged-In (per second) %value%, has crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_pa_pgin_cond"
				CLEAR_MESSAGE="Pages Paged-In (per second) %value%, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) threshold."
				CLEAR_MESSAGE_NLSID="host_pa_pgin_cond_clear"/>
  </CollectionItem>

  <CollectionItem NAME = "CPUUsage" UPLOAD="NO">
     <Schedule>
        <IntervalSchedule INTERVAL = "15" TIME_UNIT = "Min"/>
     </Schedule>
  </CollectionItem>

  <CollectionItem NAME = "Swap_Area_Status">
    <Schedule>
       <IntervalSchedule INTERVAL = "24" TIME_UNIT = "Hr"/>
    </Schedule>
	   <Condition COLUMN_NAME="swapfreesize"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="LT"
                OCCURRENCES="1"
                MESSAGE="Swap Free Size  %value% has gone below the warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                MESSAGE_NLSID="host_swap_free_cond"
                CLEAR_MESSAGE="Swap Free Size  %value%  gone above the warning (%warning_threshold%) and critical (%critical_threshold%) threshold."
                CLEAR_MESSAGE_NLSID="host_swap_free_cond_clear"/>

  </CollectionItem>

<!-- Disk Errors not present on Aix
  <CollectionItem NAME = "DiskErrors">
    <Schedule>
       <IntervalSchedule INTERVAL = "72" TIME_UNIT = "Hr"/>
    </Schedule>
  </CollectionItem>
-->

<!--
===================================================================
Begin of WBEM fetchlet based collections not portable to Linux

===================================================================
-->

<!--

  <CollectionItem NAME = "UserResourceUsage" UPLOAD="YES" UPLOAD_ON_FETCH="FALSE" COLLECT_WHEN_DOWN="FALSE">
	<ValidIf>
		<CategoryProp NAME="OS" CHOICES="SunOS"/>
	    <CategoryProp NAME="Version" CHOICES="5.9"/>
	</ValidIf>

    <Schedule>
      <IntervalSchedule INTERVAL="15" TIME_UNIT="Min"/>
    </Schedule>

  </CollectionItem>

  <CollectionItem NAME = "ProjectResourceUsage" UPLOAD="YES" UPLOAD_ON_FETCH="FALSE" COLLECT_WHEN_DOWN="FALSE">
	<ValidIf>
		<CategoryProp NAME="OS" CHOICES="SunOS"/>
	    <CategoryProp NAME="Version" CHOICES="5.9"/>
	</ValidIf>

    <Schedule>
      <IntervalSchedule INTERVAL="15" TIME_UNIT="Min"/>
    </Schedule>

  </CollectionItem>
-->
<!--
===================================================================
End of WBEM fetchlet based collections not portable to Linux
===================================================================
-->

<!--
  <CollectionItem NAME = "Processes" UPLOAD="NO">
     <Schedule>
        <IntervalSchedule INTERVAL = "5" TIME_UNIT = "Min"/>
     </Schedule>
     <Condition COLUMN_NAME="pcpu"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="2"
                MESSAGE="CPU Utilization is %value%%% for %commandArgs%"
                MESSAGE_NLSID="host_topProcs_pcpu_cond"/>
     <Condition COLUMN_NAME="pmem"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                OCCURRENCES="2"
                MESSAGE="Memory Utilization is %value%%% for %commandArgs%"
                MESSAGE_NLSID="host_topProcs_pmem_cond"/>
  </CollectionItem>

  <CollectionItem NAME = "osAlertLog" UPLOAD="NO">
     <Schedule>
        <IntervalSchedule INTERVAL = "5" TIME_UNIT = "Min"/>
     </Schedule>
     <Condition COLUMN_NAME="alertSeverity"
                CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="LE"
                OCCURRENCES="1"
                MESSAGE="%alertConcatString%" NO_CLEAR_ON_NULL="TRUE"
                MESSAGE_NLSID="host_alertLog_alertSeverity_cond"/>
  </CollectionItem>

-->
<!-- ESM host metric -->
  <CollectionItem NAME = "oracle_security" UPLOAD_ON_FETCH = "TRUE" CONFIG = "TRUE">
     <Schedule OFFSET_TYPE="INCREMENTAL">
        <IntervalSchedule INTERVAL = "24" TIME_UNIT = "Hr"/>
     </Schedule>
     <MetricColl NAME="openPorts" />
     <MetricColl NAME="insecureServices" />
     <MetricColl NAME="executeStack" />
  </CollectionItem>

<!-- Metric: Zombie Processes -->
  <CollectionItem NAME = "proc_zombie" UPLOAD="60">
    <Schedule>
      <IntervalSchedule INTERVAL = "15" TIME_UNIT = "Min"/>
    </Schedule>
    <Condition COLUMN_NAME="percnt" CRITICAL="50" WARNING="35" OPERATOR="GT" 
      OCCURRENCES="1" 
      MESSAGE="%value%%% of all processes are in zombie state, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
      MESSAGE_NLSID="host_proc_zombie_percnt_10_2_cond" 
      CLEAR_MESSAGE="%value%%% of all processes are in zombie state, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
      CLEAR_MESSAGE_NLSID="host_proc_zombie_percnt_10_2_cond_clear"/>
  </CollectionItem>

  <CollectionItem NAME="ProgramResourceUtilization">
    <Schedule>
      <IntervalSchedule INTERVAL="5" TIME_UNIT = "Min"/>
    </Schedule>
    <MetricColl NAME="ProgramResourceUtilization">
      <Condition COLUMN_NAME="prog_max_cpu_util" 
                 CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                 OCCURRENCES="3"
                 MESSAGE="Process %prog_max_cpu_util_pid% matched by the program name ''%prog_name%'' and owner ''%owner%'' is utilizing %prog_max_cpu_util%%% of the cpu. It has crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 MESSAGE_NLSID="host_prog_max_cpu_util_cond" 
                 CLEAR_MESSAGE="Process %prog_max_cpu_util_pid% matched by the program name ''%prog_name%'' and owner ''%owner%'' is utilizing %prog_max_cpu_util%%% of the cpu. It has fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                 CLEAR_MESSAGE_NLSID="host_prog_max_cpu_util_cond_clear"/>
      <Condition COLUMN_NAME="prog_total_cpu_util"
                 CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                 OCCURRENCES="3"
                 MESSAGE="%prog_max_process_count% processes matched by the program name ''%prog_name%'' and owner ''%owner%'' are utilizing %prog_total_cpu_util%%% of the cpu. It has crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 MESSAGE_NLSID="host_prog_total_cpu_util_cond" 
                 CLEAR_MESSAGE="%prog_max_process_count% processes matched by the program name ''%prog_name%'' and owner ''%owner%'' are utilizing %prog_total_cpu_util%%% of the cpu. It has fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                 CLEAR_MESSAGE_NLSID="host_prog_total_cpu_util_cond_clear"/>
      <Condition COLUMN_NAME="prog_max_cpu_time"
                 CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                 OCCURRENCES="3"
                 MESSAGE="Process %prog_max_cpu_time_pid% matched by the program name ''%prog_name%'' and owner ''%owner%'' has accumulated %prog_max_cpu_time% minutes of cpu time. This duration has crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 MESSAGE_NLSID="host_prog_max_cpu_time_cond" 
                 CLEAR_MESSAGE="Process %prog_max_cpu_time_pid% matched by the program name ''%prog_name%'' and owner ''%owner%'' has accumulated %prog_max_cpu_time% minutes of cpu time. This duration has fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                 CLEAR_MESSAGE_NLSID="host_prog_max_cpu_time_cond_clear"/>
      <Condition COLUMN_NAME="prog_total_cpu_time"
                 CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                 OCCURRENCES="3"
                 MESSAGE="%prog_max_process_count% processes matched by the program name ''%prog_name%'' and owner ''%owner%'' have accumulated %prog_total_cpu_time% minutes of cpu time. This duration has crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 MESSAGE_NLSID="host_prog_total_cpu_time_cond" 
                 CLEAR_MESSAGE="%prog_max_process_count% processes matched by the program name ''%prog_name%'' and owner ''%owner%'' have accumulated %prog_total_cpu_time% minutes of cpu time. This duration has fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                 CLEAR_MESSAGE_NLSID="host_prog_total_cpu_time_cond_clear"/>
      <Condition COLUMN_NAME="prog_max_rss"
                 CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                 OCCURRENCES="3"
                 MESSAGE="Process %prog_max_rss_pid% matched by the program name ''%prog_name%'' and owner ''%owner%'' is utilizing %prog_max_rss% (MB) of resident memory. It has crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 MESSAGE_NLSID="host_prog_max_rss_cond" 
                 CLEAR_MESSAGE="Process %prog_max_rss_pid% matched by the program name ''%prog_name%'' and owner ''%owner%'' is utilizing %prog_max_rss% (MB) of resident memory. It has fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                 CLEAR_MESSAGE_NLSID="host_prog_max_rss_cond_clear"/>
      <Condition COLUMN_NAME="prog_max_process_count"
                 CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="GT"
                 OCCURRENCES="3"
                 MESSAGE="%prog_max_process_count% processes are matched by the program name ''%prog_name%'' and owner ''%owner%''. They have crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 MESSAGE_NLSID="host_prog_max_process_count_cond" 
                 CLEAR_MESSAGE="%prog_max_process_count% processes are matched by the program name ''%prog_name%'' and owner ''%owner%''. They have fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                 CLEAR_MESSAGE_NLSID="host_prog_max_process_count_cond_clear"/>
      <Condition COLUMN_NAME="prog_min_process_count"
                 CRITICAL="NotDefined" WARNING="NotDefined" OPERATOR="LT"
                 OCCURRENCES="3"
                 MESSAGE="%prog_min_process_count% processes are matched by the program name ''%prog_name%'' and owner ''%owner%''. They have fallen below warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 MESSAGE_NLSID="host_prog_min_process_count_cond" 
                 CLEAR_MESSAGE="%prog_min_process_count% processes are are matched by the program name ''%prog_name%'' and owner ''%owner%''. They have crossed warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                 CLEAR_MESSAGE_NLSID="host_prog_min_process_count_cond_clear"/>
    </MetricColl>
  </CollectionItem>

  <CollectionItem NAME="LogFileMonitoring">
    <Schedule>
      <IntervalSchedule INTERVAL="15" TIME_UNIT = "Min"/>
    </Schedule>	
    <MetricColl NAME="LogFileMonitoring">
      <Condition COLUMN_NAME="log_file_match_count" 
                 WARNING="1" CRITICAL="2" OPERATOR="GT" 
                 MESSAGE="%log_file_message%. %log_file_match_count% crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 MESSAGE_NLSID="host_log_file_match_count_cond" />
    </MetricColl>
  </CollectionItem>

  <CollectionItem NAME="FileMonitoring">
    <Schedule>
      <IntervalSchedule INTERVAL="15" TIME_UNIT = "Min"/>
    </Schedule>
    <MetricColl NAME="FileMonitoring">
      <Condition COLUMN_NAME="file_attribute_not_found"
                 WARNING="NotDefined" CRITICAL="0" OPERATOR="NE"
                 MESSAGE="%file_attribute_not_found% ."
                 MESSAGE_NLSID="host_file_attribute_not_found_cond"  
                 CLEAR_MESSAGE="File or Directory Attribute Found"
                 CLEAR_MESSAGE_NLSID="host_file_attribute_not_found_cond_clear"/>
      <Condition COLUMN_NAME="file_sizechangerate"
                 WARNING="NotDefined" CRITICAL="NotDefined" OPERATOR="GT"
                 MESSAGE="%file_name% is growing at the rate of %file_sizechangerate% (KB/hour), crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 MESSAGE_NLSID="host_file_sizechangerate_cond"  
                 CLEAR_MESSAGE="%file_name% is growing at the rate of %file_sizechangerate% (KB/hour), fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                 CLEAR_MESSAGE_NLSID="host_file_sizechangerate_cond_clear"/>
      <Condition COLUMN_NAME="file_size"
                 WARNING="NotDefined" CRITICAL="NotDefined" OPERATOR="GT"
                 MESSAGE="Size of %file_name% is %file_size% MB, crossed warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 MESSAGE_NLSID="host_file_size_cond" 
                 CLEAR_MESSAGE="Size of %file_name% is %file_size% MB, fallen below warning (%warning_threshold%) and critical (%critical_threshold%) thresholds."
                 CLEAR_MESSAGE_NLSID="host_file_size_cond_clear"/>
      <Condition COLUMN_NAME="file_permissions"
                 WARNING="NotDefined" CRITICAL="NotDefined" OPERATOR="NE"
                 MESSAGE="Current permissions for %file_name% are %file_permissions%, different from warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 MESSAGE_NLSID="host_file_permissions_cond"
                 CLEAR_MESSAGE="Current permissions for %file_name% are %file_permissions%, same as warning (%warning_threshold%) or critical (%critical_threshold%) threshold."
                 CLEAR_MESSAGE_NLSID="host_file_permissions_cond_clear"/>
    </MetricColl>
  </CollectionItem>

  <!--
  ====================================================================
  Host storage reporting metric collection
  ====================================================================
  -->

  <CollectionItem NAME = "host_storage" UPLOAD_ON_FETCH="TRUE" CONFIG="TRUE">

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

  <MetricColl NAME="storage_reporting_data" />
  <MetricColl NAME="storage_reporting_keys" />
  <MetricColl NAME="storage_reporting_alias" />
  <MetricColl NAME="storage_reporting_issues" />

  </CollectionItem>

  <!--
  ====================================================================
  VIP relocation metric collection
  ====================================================================
  -->
  <CollectionItem NAME = "VIPRelocation">
    <Schedule>
      <IntervalSchedule INTERVAL = "5" TIME_UNIT = "Min"/>
    </Schedule>
    <MetricColl NAME="VIPRelocation">
      <Condition COLUMN_NAME="relocated"
                 CRITICAL="TRUE" WARNING="NotDefined" OPERATOR="EQ"
                 MESSAGE="CRS resource %vip% was relocated to %current_node%"
                 MESSAGE_NLSID="host_crs_resource_relocated" />
    </MetricColl>
  </CollectionItem>

  <!--
  ====================================================================
  CRS nodeapps down metric collection
  ====================================================================
  -->
  <CollectionItem NAME = "CRSResource">
    <Schedule>
      <IntervalSchedule INTERVAL = "5" TIME_UNIT = "Min"/>
    </Schedule>
    <MetricColl NAME="CRSResource">
      <Condition COLUMN_NAME="status"
                 CRITICAL="OFFLINE NOT RESTARTING" WARNING="UNKNOWN|OFFLINE" OPERATOR="MATCH"
                 MESSAGE="CRS resource %nodeapps% is %status%"
                 MESSAGE_NLSID="host_crs_resource_status_report" />
    </MetricColl>
  </CollectionItem>

  <!--
  ====================================================================
  CRS alert reporting metric collection
  ====================================================================
  -->
  <CollectionItem NAME = "CRSAlert">
    <Schedule>
      <IntervalSchedule INTERVAL = "5" TIME_UNIT = "Min"/>
    </Schedule>
    <MetricColl NAME="CRSAlert">
      <ItemProperty NAME="limitSwitch">250</ItemProperty>
      <Condition COLUMN_NAME="clusterwareErrStack"
                 CRITICAL="CRS-(1202|1402|1602|1603)" WARNING="CRS-(1201|1401|1012)" OPERATOR="MATCH"
                 MESSAGE="%clusterwareErrStack% See %alertLogName% for details."
                 MESSAGE_NLSID="alertLog_crs_alertmessage"
                 NO_CLEAR_ON_NULL="TRUE" />
      <Condition COLUMN_NAME="resourceErrStack"
                 CRITICAL="CRS-120(3|5|6)" OPERATOR="MATCH"
                 MESSAGE="%resourceErrStack% See %alertLogName% for details."
                 MESSAGE_NLSID="alertLog_crs_alertmessage"
                 NO_CLEAR_ON_NULL="TRUE" />
      <Condition COLUMN_NAME="ocrErrStack"
                 CRITICAL="CRS-1009" OPERATOR="MATCH"
                 MESSAGE="%ocrErrStack% See %alertLogName% for details."
                 MESSAGE_NLSID="alertLog_crs_alertmessage"
                 NO_CLEAR_ON_NULL="TRUE" />
    </MetricColl>
  </CollectionItem>
  
  <!--
  ====================================================================
  CRS status metric collection
  ====================================================================
  -->
  <CollectionItem NAME = "CRSStatus">
    <Schedule>
      <IntervalSchedule INTERVAL = "5" TIME_UNIT = "Min"/>
    </Schedule>
    <MetricColl NAME="CRSStatus">
        <Condition COLUMN_NAME="CRS_status"
               CRITICAL="0" OPERATOR="EQ"
               CLEAR_MESSAGE="Clusterware is Up on this host."
               CLEAR_MESSAGE_NLSID="CRS_Status_clearalertmessage"
               MESSAGE="Clusterware on the local host has problems. %CRS_output%"
               MESSAGE_NLSID="CRS_Status_alertmessage" />
    </MetricColl>
  </CollectionItem>

  <!--
   ====================================================================
   LPARStat metric collection
   ====================================================================
  -->
  <CollectionItem NAME = "LPAR Statistics">
    <ValidIf>
      <CategoryProp NAME="OS" CHOICES="AIX"/>
      <CategoryProp NAME="Version" CHOICES="5.3.0.0"/>
    </ValidIf>
    <Schedule>
      <IntervalSchedule INTERVAL = "24" TIME_UNIT = "Hr"/>
    </Schedule>
  </CollectionItem>
<!--
======================================================================
Metric Collections for Single Instance HA Configuration BEGIN
======================================================================
-->
  &single_instance_ha_metric_collections;
<!--
======================================================================
Metric Collections for Single Instance HA Configuration END
======================================================================
-->

</TargetCollection>
