Database Reference
In-Depth Information
Let's summarize the definition of the Response metric from Listing 10-12. A Response metric is a single-row
metric with the columns Load and Status . It's using the OSLineToken fetchlet that is capable of returning a multirow,
multicolumn result set from an OS command. The fetchlet is configured to run a Perl script named data_collector.pl
and parses output by separating column values with a pipe symbol ( | ) and filtering in only the lines prefixed with
em_result= .
Default Collection Metadata
Now that you know how the EM12c user can configure new target instances (via the InstanceProperties element)
and what metrics target type will collect and how ( Metric elements), the only missing bit is to define how often
metrics need to be collected and what the alerting conditions are on the metrics. This is defined in the Default
Collection metadata XML file placed in <EDK>/oms/metadata/default_collection and linked from
<EDK>/agent/default_collection . Use the same naming convention as for the target type metadata file. A sample
default collection metadata definition is shown in Listing 10-13. See the default collection definition of the Sample
Host 1 target for the complete example.
Listing 10-13. Sample Default Connection Metadata Definition
<TargetCollection TYPE="sample_host1">
<CollectionItem NAME="Response">
<Schedule>
<IntervalSchedule INTERVAL="5" TIME_UNIT="Min"/>
</Schedule>
<Condition COLUMN_NAME="Status" CRITICAL="1" OPERATOR="LT"/>
</CollectionItem>
<CollectionItem NAME="Perf" UPLOAD="1">
<Schedule>
<IntervalSchedule INTERVAL="5" TIME_UNIT="Min"/>
</Schedule>
<MetricColl NAME="CPUPerf">
<Condition COLUMN_NAME="non_nice" WARNING="NotDefined" CRITICAL="NotDefined"
OPERATOR="GE"
MESSAGE="The value for %columnName% is %value%%%. It has risen above the
critical (%critical_threshold%%%) or warning (%warning_threshold%%%) threshold."
CLEAR_MESSAGE="The value for %columnName% is %value%%%." />
<Condition ... />
...
</MetricColl>
<MetricColl NAME="MemoryPerf">...</MetricColl>
<MetricColl NAME="CPUProcessorPerf">...</MetricColl>
...
</CollectionItem>
...
</TargetCollection>
 
Search WWH ::




Custom Search