The EIF event map is an XML file that specifies how the events for one or more private situations are to be translated. Create a custom event mapping file to modify the data being sent to the EIF receiver.
<itmEventMapping:agent>
<id>xx</id>
<version>n.n</version>
<event_mapping>
<situation>
<slot>
<mappedAttribute/>
or
<mappedAttributeEnum/>
or
<literalString/>
</slot>
: one or more slot tags
</situation>
or
<attributeTable>
<slot>
<mappedAttribute/>
or
<mappedAttributeEnum/>
or
<literalString/>
</slot>
: one or more slot tags
</attributeTable>
</event_mapping>
</itmEventMapping:agent>
XML tags are case-insensitive. All other parameters are case-sensitive.
<id>pc</id>
ID is the
two character product code, such as "UX" for the UNIX OS agent. For user defined event maps,
it is recommended to use "99" as the ID.<version>nnnn</version>
Optional.
Use this element to specify the version of the event mapping file.<valueList name="valueListName">
Optional.
Use the valueList element to define a value list of one or more value
items where valueListName is the
name of the list. <valueItem name="item_value">
This element is required when a valueList is
being defined. ValueItem specifies a valid item value for the named valueList.<event_mapping>
The event_mapping
element encloses a group of mapping entries.<situation name="situation_name" [mapAllAttributes="Y"]
The
situation element specifies a DM mapping entry whose key is situation_name.
The situation_name string can contain wildcard characters
(* asterisk and ? question mark) except for in the first character
position. <attributeTable name="attribute_table_name"
[truncated="Y"] [freeSpace="nnnn"]
<class name="eif_class_name" [valueList="valueList_name"]
[defaultClass="default_eif_class_name"]>
<slot name="slot_name">
Optional.
Define a slot in the EIF event. The name of the slot is the slot_name.<mappedAttribute name="attribute_name" [multiplier="nnn"]>
Optional.
Specify the value source for the slot being defined. This is the value
of the attribute with the name attribute_name in
the event data, if available. Otherwise, a null value is used. If
the multiplier= attribute is specified and the value
of the attribute is numeric, the value assigned for the slot is the
attribute value multiplied by the number specified.<mappedAttributeEnum name="attribute_name">
Optional.
MappedAttributeEnum is similar to the mappedAttribute tag except that
if the attribute is defined as an enumeration in the attribute file,
the enumerated display text is used as the slot value instead of the
raw attribute value. If no enumerated display text is defined that
matches the attribute value, the raw attribute value is used.<literalString value="text">
Optional.
Use the text as the value for the slot being defined. When defining
a "msg" slot, you can specify variable substitution within the
text (described next). <slot slotName="msg">
<literalString value="Distributed Monitoring $sub_source$/$monitor$
on host $hostname$ $NT_LogicalDisk.Timestamp$"/>
</slot>
If the value for the sub_source and monitor slots
have values "tmpdisk" and "Disk Read Bytes/sec", the msg
slot text is similar to this example:Distributed Monitoring tmpdisk/Disk Read Bytes/sec on host
elaix04 08/14/2009 10:23:11
If the variable references a numeric attribute, no scaling or precision operation is performed. The string representation for the numeric field in the situation event record will be used without any adjustment. If the variable references an enumerated attribute, any text representation of the enumeration, is used as the value for the variable.
When the situation is not true (status is not "Y"), the situation status record does not contain any event attribute data. Consequently, there is no way to determine the value of any substitution variablea in the class name. The EIF event forwarder uses the defaultClass= attribute if one is specified. Otherwise, it uses the EIF event class of the EIF event last sent for the same situation name.
<situation name="Test_Syslog">
<class name="SAP_Syslog_$R/3_System_Log.Message_Number$"
valueList="SyslogIDList" defaultClass="SAP_Syslog_Default" />
:
:
</situation>
This example has a "SyslogIDList" value
list with valueItems AB0, AB1, A08, BV7, EAS, and R45 and a "Test_Syslog" situation
that monitors for message IDs AB0, AB1, AB2, BV7, and BV8, The "Test_Syslog" situation
evaluates to true for each of these message ids. The generated EIF
events are of the following classes:<itmEventMapping:agent
xmlns:itmEventMapping="http://www.ibm.com/tivoli/itm/agentEventMapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ibm.com/tivoli/itm/agentEventMapping
agentEventMap.xsd">
<id>NT</id>
<version>6.2.0</version>
<event_mapping>
<situation name="NT_LDDBPS*">
<class name="w2k_LogDskDskBytesPerSec"/>
<slot slotName="source">
<literalString value="SENTRY"/>
</slot>
<slot slotName="probe">
<literalString value="DskBytesPerSec"/>
</slot>
<slot slotName="probe_arg">
<mappedAttribute name="NT_Logical_Disk.Disk_Name"/>
</slot>
<slot slotName="collection">
<literalString value="w2k_LogicalDisk"/>
</slot>
<slot slotName="monitor">
<literalString value="Disk Bytes/sec"/>
</slot>
<slot slotName="units">
<literalString value="(per second)"/>
</slot>
<slot slotName="value">
<mappedAttribute name="NT_Logical_Disk.Disk_Bytes/Sec"/>
</slot>
<slot slotName="effective_value">
<mappedAttribute name="NT_Logical_Disk.Disk_Bytes/Sec"/>
</slot>
<slot slotName="msg">
<literalString value="Distributed Monitoring $sub_source$/Disk
Bytes/sec on host $hostname$ $NT_Logical_Disk.Timestamp.TIMESTAMP$"/>
</slot>
</situation>
</event_mapping>
</itmEventMapping:agent>
Sample EIF files are provided
on the Tivoli® Monitoring
Agent installation media in the PrivateConfigSamples/EIF directory.