Change Event Properties

You can configure the Event Manager by changing its properties.
You can configure the Event Manager by changing its properties.
For example, you can configure the following:
  • How long it stores, or retains, events by modifying the
    Event.Retention
    property. By default, the Event Manager database retains events for 30 days.
  • The maximum time (in seconds) that a script can take to complete execution before it stops the execution by modifying the
    em.notification.script_notification_execution_time
    property.
    For more information about these notification scripts, see Configure Notifications.
Follow these steps:
  1. Open the
    /opt/CA/PerformanceCenter/EM/webapps/EventManager/WEB-INF/em.properties
    Event Manager properties file.
  2. Edit the properties as desired:
    db.driverClassName=com.mysql.jdbc.Driver
    db.timeout=120
    db.maxActive=40
    rib.queryTimeout=100
    em.ws.maxqueue=50
    Event.Retention=45
    db.url=jdbc\:mysql\://localhost\:3306/em?useUnicode\=true&characterEncoding\=UTF-8
    em.notification.trap.eventmanager_trap_use_new_format=false
    em.event.analysisThreshold=10000
    em.notification.notification_pool_size=10
    db.username=netqos
    nqevents.dbHost=
    em.ws.queuetimeout=180
    em.notification.notification_max_pool_size=20
    em.notification.script_notification_handler_max_pool_size=1
    em.notification.script_notification_handler_pool_size = 1
    em.notification.script_notification_handler_queue_size=5000
    em.notification.script_notification_execution_time=300
    em.web.port=8281
    db.password=netqos
  3. Save your changes.
  4. Using the command line, stop the Event Manager by issuing the following command:>
    service caperfcenter_eventmanager stop
  5. Restart the Event Manager by issuing the following command:
    service caperfcenter_eventmanager start
    The Event Manager starts and uses the new value to determine the retention period.