Show TOC Start of Content Area

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

Procedure

...

       1.      BankMBean:

public String getBankName();

 

       2.      Bank:

public String getBankName() {

    return BankProperties.getBankName();

}

 

       3.      Modify the monitor-configuration.xml:

                            a.      Define the 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.      Define the 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

The Bank Name monitor appears in the monitoring tree under Applications Bank Information General Information.

 

 

End of Content Area