Entering content frame

Procedure documentation Text Monitor - "Bank Name" Locate the document in its SAP Library structure

Procedure

...

       1.      BankMBean

public String getBankName();

 

       2.      Bank

public String getBankName() {

    return BankProperties.getBankName();

}

 

       3.      monitor-configuration.xml

                            a.      monitor-semantics

<text-configuration-group name="Name">

    <description ID="Bank name">Bank's name</description>

    <data-collection>

        <polled-by-monitor period="1" unit="MINUTE"/>

    </data-collection>

</text-configuration-group>

 

                            b.      monitor-tree

<text-monitor name="Bank name" configuration-group="Name">

    <monitored-resource name="BankMBean" type="APPLICATION"/>

    <text-attribute-mapping>

        <text-attribute>

            <observed-resource-attribute name="BankName"/>

        </text-attribute>

    </text-attribute-mapping>

</text-monitor>

 

The monitoring framework expects a String value for text monitors, that is why the return value of the getBankName() method is String. In the BankMBean interface this method is declared and is implemented in the class Bank. In the monitor-semantics part of the monitor-configuration.xml a text-configuration-group is declared with name ‘Name’, which is used to create the node in the monitor tree (monitor-tree part in XML). The ID in the ‘Bank Name’ description is the name of the monitor shown in the tree.

Result

Representation in the monitoring tree (Visual Administrator):

This graphic is explained in the accompanying text

 

The next step is to create a configuration monitor named “Bank Information”

 

Leaving content frame