Enable events

Log on as root or egoadmin

If you want to be notified about cluster events, enable this feature. By default, events are not enabled.

  1. In ego.conf, remove the comment (“#”) from the parameters EGO_EVENT_MASK and EGO_EVENT_PLUGIN.

    You have enabled events to be logged.

  2. Set EGO_EVENT_MASK to the log level you want.
    EGO_EVENT_MASK must be set to one of the following values:
    • LOG_ERR: Provides information about error events only

    • LOG_WARNING: Provides information about warning and error events

    • LOG_INFO: (Default) Provides information about all events

    For example, EGO_EVENT_MASK=LOG_INFO.

  3. Set EGO_EVENT_PLUGIN to the plug-in configuration you want to use.

    You can use the provided SNMP configuration or specify your own.

    1. You can modify the default port (port 162) by specifying TRAPPORT=port_number in the string.

      EGO_EVENT_PLUG_IN="eventplugin_snmp[…,TRAPPORT=port_number]"

      Note that in a Linux environment, do not use quotation marks around the event plug-in definition.

      For example, EGO_EVENT_PLUG_IN=eventplugin_snmp[…,TRAPPORT=port_number].

  4. Save ego.conf and restart your cluster.

You should specify your SNMP plug-in and create a trap.