View an event

You must enable events to be logged before you complete this task. Log on as root or egoadmin.

To view an event, you need to set your SNMP plug-in and trap information.

An SNMP plug-in is installed but not enabled by default. You can replace this SNMP plug-in with a similar plug-in. We recommend SNMP Trap Watcher by BTT Software.

  1. Open ego.conf for editing.

    You need to specify two parameters under the EGO event configuration section: EGO_EVENT_PLUGIN and EGO_EVENT_MASK.

  2. Enable events to be logged.

    In the EGO event configuration section, remove the comment ("#") from the parameter EGO_EVENT_PLUGIN and specify the plug-in information.

    There is a plug-in installed and specified by default.

  3. (Optional) Change the default port (162) by specifying TRAPPORT=port_number in your event plug-in string.
  4. Set up an SNMP v1 trap for EGO events by specifying the name and configuration file location with your SNMP information.

    For example: EGO_EVENT_PLUGIN=eventplugin_snmp[SINK=,MIBDIRS=/mibs] host EGO_CONFDIR

    where host represents the name of the host where the SNMP trap daemon is running.

    Note the following:

    • The MIBDIRS directory may also equal MIBDIRS=$EGO_CONFDIR/kernel/conf/mibs.

    • In a Windows environment, use quotation marks around the event plug-in definition.

      For example, EGO_EVENT_PLUGIN="eventplugin_snmp[SINK=host,MIBDIRS=$EGO_CONFDIR\kernel\conf\mibs]".

  5. Set EGO_EVENT_MASK=LOG_INFO.
  6. Save ego.conf and restart your cluster.

You need to configure your SNMP manager to take an action for events that are received.