+

Search Tips | Advanced Search

MFT monitor log message format

Monitor log messages are published to the SYSTEM.FTE topic with a topic string of Log/agent_name/Monitors/monitor_name/monitor_ID.

If you want to collect data or view monitor actions, set up a subscription to a wildcard topic tailored to the monitors that you are interested in. For example:
Log/# 
or,
Log/agent_name/# 
This subscription can be durable or non-durable. Durable subscriptions continue to exist when a subscribing application's connection to the queue manager is closed. Non-durable subscriptions exist only as long as a subscribing application's connection to the queue manager remains open.

The MonitorLog.xsd schema document is located in the MQ_INSTALLATION_PATH/mqft/samples/schema directory. The MonitorLog.xsd schema imports fteutils.xsd, which is in the same directory.


Schema

The following schema describes which elements are valid in a monitor log XML message.

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <xsd:include schemaLocation="fteutils.xsd"/>

    <xsd:element name="monitorLog">
        <xsd:complexType>
            <xsd:sequence>         	    
                <xsd:element name="originator"       type="hostUserIDType"         maxOccurs="1" minOccurs="0"/>
                <xsd:element name="references"       type="referencesType"         maxOccurs="1" minOccurs="0"/>
                <xsd:element name="action"           type="monitorActionType"      maxOccurs="1" minOccurs="1"/> 	
                <xsd:element name="monitorAgent"     type="agentType"              maxOccurs="1" minOccurs="1"/>
                <xsd:element name="status"           type="statusType"             maxOccurs="1" minOccurs="1"/>
                <xsd:element name="monitorMetaData"  type="monitorMetaDataType"    maxOccurs="1" minOccurs="0"/>
                <xsd:element name="monitorExits"     type="exitGroupType"          maxOccurs="1" minOccurs="0"/>
                <xsd:element name="jobDetails"       type="jobType"                maxOccurs="1" minOccurs="0"/>
                <xsd:element name="taskXMLRequest"   type="taskXMLRequestType"     maxOccurs="1" minOccurs="0"/>
                <xsd:element name="monitorXMLRequest"   type="monitorXMLRequestType"             maxOccurs="1" minOccurs="0"/>
            </xsd:sequence>
            <xsd:attribute name="version"     type="versionType" use="required"/>
            <xsd:attribute name="monitorName" type="xsd:string"  use="required"/>
            <xsd:attribute name="referenceId" type="xsd:string"  use="optional"/>
        </xsd:complexType>
    </xsd:element> 

    <xsd:complexType name="monitorActionType">
        <xsd:simpleContent>
            <xsd:extension base="monitorActionEnumType">
                <xsd:attribute name="time" type="xsd:dateTime" use="required" />     		
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

    <xsd:simpleType name="monitorActionEnumType">
        <xsd:restriction base="xsd:token">
            <xsd:enumeration value="create"/>
            <xsd:enumeration value="delete"/>
            <xsd:enumeration value="start"/>
            <xsd:enumeration value="stop"/>
            <xsd:enumeration value="triggerSatisfied"/>
            <xsd:enumeration value="triggerNotSatisfied"/>
            <xsd:enumeration value="triggerFail"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:complexType name="monitorMetaDataType">
        <xsd:sequence>
            <xsd:element name="originalMetaData" type="metaDataSetType"  maxOccurs="1" minOccurs="0"/>
            <xsd:element name="updatedMetaData"  type="metaDataSetType"  maxOccurs="unbounded" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="taskXMLRequestType">
        <xsd:sequence>
            <xsd:element name="originalRequest" type="xsd:string"  maxOccurs="1" minOccurs="1"/>
            <xsd:element name="updatedRequest"  type="xsd:string"  maxOccurs="1" minOccurs="0"/>
        </xsd:sequence>
        <xsd:attribute name="taskId" type="xsd:string" use="required"/>
    </xsd:complexType> 

    <xsd:complexType name="referencesType">
        <xsd:sequence>
            <xsd:element name="createRequest" type="xsd:string"  maxOccurs="1" minOccurs="0"/>
            <xsd:element name="taskRequest"   type="xsd:string"  maxOccurs="1" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="monitorXMLRequestType">
        <xsd:simpleContent>
            <xsd:extension base="xsd:string">
                <xsd:attribute name="type" type="xmlContentEnumType" use="required" />
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

    <xsd:simpleType name="xmlContentEnumType">
        <xsd:restriction base="xsd:token">
            <xsd:enumeration value="escapedXML"/>
        </xsd:restriction>
    </xsd:simpleType>

</xsd:schema>


Understanding the monitor log message

The elements and attributes used in the monitor log messages are described in the following list:


Examples

Examples of XML messages that conform to this schema are provided for each of the following monitor actions: