Configuring Tomcat for Sentinel Monitoring

About the configuration

To extend the capabilities of Sentinel Monitoring, configure Tomcat.

These configurations add access to higher-level request objects, and customize the lifecycle views for Tracked Objects.

Procedure

  1. Go to <Sentinel install directory>\www\SentinelMonitoring\WEB-INF\config\ and open the file monitoring-config.xml in a text editor.
  2. Append the following sub searches:
  3. <SubSearch>

    <search lifecycle="false">Company.Passport.PassportAuditAll</search>

    <subSearch>Company.Passport.PassportAuditAllCategorySearch</subSearch>

    <Parameters>

    <param name="Category ?" searchAttrName="Category"/>

    </Parameters>

    </SubSearch>

    <SubSearch>

    <search lifecycle="false">Company.Passport.PassportAuditAll</search>

    <subSearch>Company.Passport.PassportAuditAllSubCatSearch</subSearch>

    <Parameters>

    <param name="Sub category ?" searchAttrName="SubCategory"/>

    </Parameters>

    </SubSearch>

    <SubSearch>

    <search lifecycle="false">Company.Passport.PassportAuditAllCategorySearch</search>

    <subSearch>Company.Passport.PassportAuditAllSubCatSearch</subSearch>

    <Parameters>

    <param name="Sub category ?" searchAttrName="SubCategory"/>

    </Parameters>

    </SubSearch>

    <SubSearch>

    <search lifecycle="false">Company.Passport.PassportSummaryAll</search>

    <subSearch>Company.Passport.PassportAuditAllSearchTrans</subSearch>

    <Parameters>

    <param name="TransactionId ?" searchAttrName="TransactionId"/>

    </Parameters>

    </SubSearch>

  4. NOTE: The structure of Company.Passport is assumed. You must modify this in the file, if the structure at the installation site is different.
  5. Add subdirectories for each Tracked Object:
  6.  

    ..\tomcat\webapps\SentinelMonitoring\WEB-INF\config\trkobj-config\PASSPORT_AUDIT_SUMMARY

    ..\tomcat\webapps\SentinelMonitoring\WEB-INF\config\trkobj-config\PASSPORT_AUDIT_V2

  7. In the PASSPORT_AUDIT_SUMMARY sub directory, add a file called obj-config.xml with the following content:
  8. <?xml version="1.0" encoding="UTF-8"?>

    <!-- Tracked Object configuration information -->

    <TrackedObjConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:noNamespaceSchemaLocation="MonitoringTrackedObjConfig.xsd">

     

    <!-- Attributes displayed in lifecycle view -->

    <LifeCycleDisplay>

    <field>RecDate</field>

    <field>RecTime</field>

    <field>Category</field>

    <field>SubCategory</field>

    <field>UserName</field>

    <field>Status</field>

    </LifeCycleDisplay>

     

    <!-- Attributes displayed in detailed view -->

    <DetailDisplay>

    </DetailDisplay>

     

    <!-- Attributes to define if you add a new event to the lifecycle view -->

    <AddEvent>

    </AddEvent>

     

    <!-- Attributes to define if you modify a event in the lifecycle view -->

    <UpdateEvent>

    </UpdateEvent>

     

    </TrackedObjConfig>

  9. In the PASSPORT_AUDIT_V2 sub directory, add a file called obj-config.xml with the following content:
  10. <?xml version="1.0" encoding="UTF-8"?>

    <!-- Tracked Object configuration information -->

    <TrackedObjConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:noNamespaceSchemaLocation="MonitoringTrackedObjConfig.xsd">

     

    <!-- Attributes displayed in lifecycle view -->

    <LifeCycleDisplay>

    <field>EventDate</field>

    <field>EventTime</field>

    <field>Category</field>

    <field>SubCategory</field>

    <field>UserName</field>

    <field>Status</field>

    </LifeCycleDisplay>

     

    <!-- Attributes displayed in detailed view -->

    <DetailDisplay>

    </DetailDisplay>

     

    <!-- Attributes to define if you add a new event to the lifecycle view -->

    <AddEvent>

    </AddEvent>

     

    <!-- Attributes to define if you modify a event in the lifecycle view -->

    <UpdateEvent>

    </UpdateEvent>

    </TrackedObjConfig>