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.
Open ego.conf for editing.
You need to specify two parameters under the EGO event configuration section: EGO_EVENT_PLUGIN and EGO_EVENT_MASK.
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.
(Optional) Change the default port (162) by specifying TRAPPORT=port_number in your event plug-in string.
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]".
Set EGO_EVENT_MASK=LOG_INFO.
Save ego.conf and restart your cluster.
You need to configure your SNMP manager to take an action for events that are received.