Enabling self-monitoring
You can configure the Web GUI to record statistics about the responsiveness of the data source, the effectiveness of the cache that stores event data, and the utilization of the Java Virtual Memory (JVM). To enable this self-monitoring functionality, make changes to the data source definitions in the ncwDataSourceDefinitions.xml file.
When self-monitoring is enabled, system statistics are periodically checked. If a threshold breach is detected, an event is sent to the current primary ObjectServer that is defined in the data source. If information events are configured, an event is raised in the data source for each granularity period. The event contains the statistics that were gathered for the monitored system service. The following services are monitored
- Data Source Command
- Event Data Service
- Event Summary Data Service
- Metric Data Service
- User and security repository
- Results cache statistics
- Java Virtual Memory utilization
- Virtual Member Manager
When the thresholds for these services are breached, problem events of specified severities are raised in the data source. Default thresholds are provided. Optionally, an information event can also be raised. The events are always raised in the primary ObjectServer of the data source. The information event contains a summary of the monitored service. It has default severity of 2 (warning). The frequency with which the problem events and information events are raised is controlled by a granularity period setting. Information events have a configurable expiration setting. By default, this expiration period is the granularity period, plus 30 seconds. Self-monitoring is configured separately for each monitored service and for each data source.
Sample ncwDataSourceDefinitions.xml are in WEBGUI_HOME/dataources/samples. For an explanation of the elements that control self-monitoring, see Data source configuration file overview.