Monitoring tool configuration

You use JConsole to connect to the monitoring service as a remote client. Optionally, you can set configuration properties to configure the polling interval and the length of time that monitoring data is retained, logging levels, and the port that the tool uses.

Poll interval and data retention

To control the poll interval and the length of time that monitoring data is retained, set the values of the following two properties on the Settings > Configuration page under HCL® Opportunity Detect and Interact Advanced Patterns | System | Monitoring.

  • Poll Interval - The number of seconds that the service waits between two successive polls of the Streams server for the statistics. The default is 300 seconds, or 5 minutes.
  • Retaining Time (in days) - The number of days the service keeps the polled data in the database. The default is 10 days. The number of days the monitoring service should keep the polled data in the database. The default is 10 days. Data that is older than the time specified here is purged.

Logging

The log4j.properties file has logging properties for the monitor.log file. Thelog4j.properties is located in the conf directory under your Opportunity Detect Run Time installation.

The monitor.log file is located in the logs directory under your Opportunity Detect Run Time installation.

JMX configuration

JMX configuration values are passed in the monitoring tool startup script located in the /home/streamsadmin/OpDetection/monitor directory under your Opportunity Detect Run Time installation. Remote JMX clients use this information to connect to JMX interface in the monitoring tool. You can modify these values to start the JMX service on the desired network port.

Open the monitor.sh file in a text editor.

Modify the port number in the following lines.

JMX_ARGS = -Dcom.sun.management.jmxremote=true \ -Dcom.sun.management.jmxremote.port=9999 \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false