You can use the WMC to create notifications for events
that happen in runtime components such as orchestrations, security,
hardware and others. A delivery mechanism for these notifications
is SNMP in which a trap is set for events. To retrieve these events,
you must to set up a receiver or manager that is registered with the
appliance. Use the procedures in this section to set up an SNMP receiver.
About this task
When you set up an SNMP receiver, you download and split
the MIBs, create the configuration file, enable notifications, add
a notification policy and then test the system:
Procedure
- Click on WMC: Logs-> Notifications -> SMNP.
- In the dialog box click Download MIB.
- Add the MIBs to the machine you've designated to be
the receiver.
- Run the following script to split the MIBs into logical
units. Note: the script assumes the file is in the local directory
and that the file you downloaded is named castironsys.mib.
#!/bin/bash
sed -ne 's/DEFINITIONS ::= BEGIN.*//p' castironsys.mib |
while read mib; do
echo $mib
sed -ne "/^$mib/,/^END/p" castironsys.mib > $mib
done
- Set up your SNMP manager of choice.
- Select WMC: Logs-> Notifications -> SMNP to
enable SNMP notifications. Be sure that the Enable
SNMP checkbox is checked.
- Add the receiver hostname.
- Set the trap community to be public. This is defined
in /etc/snmp/snmptrapd.conf as the authCommunity entry.
- Click Save.