Entering content frame

Procedure documentation Configuration Monitor - "Bank Information" Locate the document in its SAP Library structure

Procedure

...

       1.      BankMBean

public ConfigurationList getBankAddress();

 

       2.      Bank

public ConfigurationList getBankAddress() {

      return BankProperties.getBankAddress();

}

 

       3.      monitor-configuration.xml

                            a.      monitor-semantics

<config-configuration-group name="BankInformation">

     <description ID="Bank Information">Bank's address, phones, faxes, telex, swift code, web cite, etc.</description>

     <data-collection>

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

    </data-collection>

</config-configuration-group>

 

                            b.      monitor-tree

<configuration-monitor name="Bank information" configuration-group="BankInformation">

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

    <configuration-attribute-mapping>

        <configuration-attribute>

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

        </configuration-attribute>

    </configuration-attribute-mapping>

</configuration-monitor>

The monitoring framework expects a ConfigurationList value for configuration monitors, that is why the return value of the getBankAddress () method is ConfigurationList. This method is declared in the BankMBean interface and is implemented in the class Bank. In the monitor-semantics part of the monitor-configuration.xml a config-configuration-group is declared with the name ‘BankInformation’, which is used for creating the node in the monitor tree (monitor-tree part in the XML). The ID in the ‘Bank Information’ 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 state monitor named “Bank Rank”

 

Leaving content frame