Configuring Tivoli Enterprise Console to send events to the event handler
If IBM Tivoli Monitoring V6.1 has been configured to send events to Tivoli Enterprise Console, then you must configure Tivoli Enterprise Console to forward events to the event handler.
Before you begin
About this task
You configure the Tivoli Enterprise Console to forward events to the event handler by installing an event handler rule.
Procedure
To install the event handler resend rule into Tivoli Enterprise Console:
- Create a temporary directory on the computer where Tivoli Enterprise Console is installed.
- Extract the itcam4soa-tec-files.zip from the sa04.1_6.0.2.1.zip or sa04.1_6.0.2.1.tgz file that is available on the event handler SupportPac site.
- Extract the following files from the itcam4soa-tec-files.zip file
to the temporary directory that you created in step 1:
- install_itcam_rb.sh
- tec_itcam.rls
- tec_itcam.conf
- Copy the kd4.baroc file from your
ITCAM for SOA installation into the temporary directory that you created
in step 1.
- For ITCAM for SOA V6.1, the kd4.baroc file is located in the 6.1 directory of the itcam4soa-tec-files.zip file and in the /kd4/tec directory of the ITCAM for SOA installation media.
- For ITCAM for SOA V6.1, fix pack 1, you must use the kd4.baroc file in the /kd4/tec directory of the ITCAM for SOA fix pack installation media.
- For ITCAM for SOA V7.1, use the kd4.baroc file
installed on your Hub Tivoli Enterprise Management Server:
- Windows - ITM_Home\cms\TECLIB
- UNIX or Linux - ITM_Home/tables/hostname/TECLIB
- Edit the parameters in the tec_itcam.conf file
as described in the following table:
Table 1. Parameters in the tec_itcam.conf file Parameter name Value Parameter description ServerLocation= Event Handler server address Hostname or IP address of the server where the event handler is installed ServerPort= Event Handler port number Port number that the event handler is listening on. By default, this is 1111. The port number must match the port number value specified when you configured the event handler. BufEvtPath= Event cache file location The file where events are cached if a connection with the event handler cannot be established. Cached events are forwarded when the connection is re-established. Modify this parameter only if the default value is not suitable. - If you are installing multiple instances of the event handler
to support the backup scenario, configure Tivoli Enterprise Console
to forward events to a list of event handlers. To configure a list
of event handlers, specify a list of hostnames or IP addresses for
the ServerLocation parameter, and a list of port numbers for the ServerPort
parameter. For example:
The order of the host names in the ServerLocation parameter list must correspond to the order of the port numbers in the ServerPort parameter list. In the example, port number 1111 is used when contacting the event handler on host soawin11.tivlab.raleigh.ibm.com, and port number 2222 is used when contacting the event handler on host soawin12.tivlab.raleigh.ibm.com. When you configure a list of event handlers, Tivoli Enterprise Console attempts to send ITCAM for SOA events to the first event handler in the list. If that event handler cannot be reached, Tivoli Enterprise Console attempts to forward events to the next event handler in the list. If a connection cannot be established to any of the event handlers, Tivoli Enterprise Console caches the events until it is able to contact one of the event handlers. For more information on configuring event caching in the tec_itcam.conf EIF configuration file, see reference topic in the Tivoli Monitoring Information Center.ServerLocation=soawin11.tivlab.raleigh.ibm.com,soawin12.tivlab.raleigh.ibm.com ServerPort=1111,2222 - Edit the variables in the in install_itcam_rb.sh file
as described in the following table: You can use the wrb –lsrb Tivoli Enterprise Console command to list the rule bases. See http://publib.boulder.ibm.com/infocenter/tivihelp/v3r1/topic/com.ibm.itecctref.doc/ecormst64.htm the Tivoli Enterprise Console Information Center.
Table 2. Variables in the in install_itcam_rb.sh file Variable name Variable description DIR= Set this variable to the temporary directory that contains the install_rb.sh file. For example, DIR=C:/temp/itcamsoarules RuleBase= Set this variable to the rule base that was specified when the IBM Tivoli Monitoring event synchronization component was installed with Tivoli Enterprise Console. RuleBasePath= Set this variable to the rule base path that was specified when the IBM Tivoli Monitoring event synchronization component was installed with Tivoli Enterprise Console. - Open a command line window, and set up the Tivoli Management
Framework environment by entering the following command:
- Windows - enter the command:
C:\WINDOWS\system32\drivers\etc\Tivoli\setup_env.cmd - UNIX and Linux - enter the command:
. /etc/Tivoli/setup_env.sh
- Windows - enter the command:
- Change directory to the temporary directory that you created
in step 1, and enter the following commands:
If the ITCAM for SOA monitoring agent .baroc file (kd4.baroc) is already loaded in the Tivoli Enterprise Console rule base, the install_itcam_rb.sh script displays error messages. You can ignore these messages.bash ./install_itcam_rb.sh - Restart Tivoli Enterprise Console.
- If you are using ITCAM for SOA V6.1 or one of its fixpack
releases, ensure the kd4.map file is copied
to one of these directories on the system where the Hub Tivoli Enterprise
Monitoring Server is installed:
- Windows: ITM_Home\cms\TECLIB.
- UNIX/Linux: ITM_Home/tables/host name/TECLIB.
- If you have installed ITCAM for SOA V6.1, the kd4.map file is available in the /kd4/tec directory on the ITCAM for SOA V6.1 installation media.
- If you have installed an ITCAM for SOA V6.1 fix pack release, you must use the version of kd4.map from the /kd4/tec directory on the ITCAM for SOA V6.1 fix pack installation media to ensure that you have the latest updates.
- If you are using ITCAM for SOA V7.1 or later, the kd4.map file is copied to the appropriate directory during product installation, and you need take no action.
- For V6.1, restart the Hub Tivoli Enterprise Monitoring
Server:
- Windows: use the Manage Tivoli Enterprise Monitoring Services application to restart the monitoring server.
- UNIX/Linux: run these commands:
where tems_name is the name of your monitoring server (for example, HUB_itmdev17)../itmcmd server stop tems_name ./itmcmd server start tems_name
For V6.2 and later, use the tacmd refreshTECinfo command to trigger the Event Forwarder to reprocess any updated event destinations, EIF configurations, and custom event mapping files (see the topic tacmd refreshTECinfo in the Tivoli Monitoring Information Center for more details).
Results
Deleting the event handler rules for Tivoli Enterprise Console
You can stop using the event handler resend rule by deleting the event handler rule.
Procedure
To delete event handler rules:
- Create a temporary directory on the computer where Tivoli Enterprise Console is installed.
- Extract the itcam4soa-tec-files.zip from the sa04.1_6.0.2.1.zip or sa04.1_6.0.2.1.tgz file that is available on the event handler SupportPac site.
- Extract the delete_itcam_rb.sh file from the itcam4soa-tec-files.zip file to the directory you created in step 1. If you want to modify the Event Handler rule files, you should also extract the install_itcam_rb.sh file.
- Save a copy of the event handler rule files for future
use. Copy the following files to the directory you created in step
1:
- RuleBasePath/TEC_CLASSES/kd4.baroc
- RuleBasePath/TEC_RULES/tec_itcam.rls
- RuleBasePath/TEC_RULES/tec_itcam.conf
- Edit delete_itcam_rb.sh, and set the RuleBase variable to the rule base that was specified when the IBM Tivoli Monitoring event synchronization component was installed with Tivoli Enterprise Console.
- Open a command line window, and set up the Tivoli Management
Framework environment by entering the following command:
- Windows - enter the command:
C:\WINDOWS\system32\drivers\etc\Tivoli\setup_env.cmd - UNIX and Linux - enter the command:
. /etc/Tivoli/setup_env.sh
- Windows - enter the command:
- Change directory to the temporary directory that you created
in step 1, and enter the following commands:
bash ./delete_itcam_rb.sh
Modifying the event handler rules for Tivoli Enterprise Console
You can modify event handler rules that you have previously specified.
Procedure
To modify event handler rules:
- Create a temporary directory on the computer where Tivoli Enterprise Console is installed.
- Save a copy of the event handler rule files. Copy the following
files to the directory you created in step 1:
- RuleBasePath/TEC_CLASSES/kd4.baroc
- RuleBasePath/TEC_RULES/tec_itcam.rls
- RuleBasePath/TEC_RULES/tec_itcam.conf
- Delete the existing rules by following the procedure described for Deleting the event handler rules for Tivoli Enterprise Console.
- Edit the parameters in the tec_itcam.conf file
as described in the following table: (You can specify a list of event handlers if required, see step 6 in Configuring Tivoli Enterprise Console to send events to the event handler.)
Table 3. Parameters in the tec_itcam.conf file Parameter name Value Parameter description ServerLocation= Event Handler server address Hostname or IP address of the server where the event handler is installed ServerPort= Event Handler port number Port number that the event handler is listening on. By default, this is 1111. The port number must match the port number value specified when you configured the event handler. BufEvtPath= Event cache file location The file where events are cached if a connection with the event handler cannot be established. Cached events are forwarded when the connection is re-established. Modify this parameter only if the default value is not suitable. - Edit the install_itcam_rb.sh file
and amend the variables described in the following table to the desired
values
Table 4. Variables in the in install_itcam_rb.sh file Variable name Variable description DIR= Set this variable to the temporary directory that contains the install_rb.sh file. For example, DIR=C:/temp/itcamsoarules RuleBase= Set this variable to the rule base that was specified when the IBM Tivoli Monitoring event synchronization component was installed with Tivoli Enterprise Console. RuleBasePath= Set this variable to the rule base path that was specified when the IBM Tivoli Monitoring event synchronization component was installed with Tivoli Enterprise Console. - Open a command line window, and set up the Tivoli Management
Framework environment by entering the following command:
- Windows - enter the command:
C:\WINDOWS\system32\drivers\etc\Tivoli\setup_env.cmd - UNIX and Linux - enter the command:
. /etc/Tivoli/setup_env.sh
- Windows - enter the command:
- Change directory to the temporary directory that you created
in step 1, and enter the following commands:
If the ITCAM for SOA monitoring agent .baroc file (kd4.baroc) is already loaded in the Tivoli Enterprise Console rule base, the install_itcam_rb.sh script displays error messages. You can ignore these messages.bash ./install_itcam_rb.sh - Restart Tivoli Enterprise Console.