268 Tivoli Business Systems Manager Version 2.1: End-to-End Business Impact Management
object, the Properties window opens, as in Figure 8-10, to show a more detailed
description of the problem.
Figure 8-10 Windows 2000 - Properties window
We can see that an exception has been raised showing high processor usage.
8.4 Tracing an event to the Common Listener
Now that we have installed the IBM Tivoli Business Systems Manager adapter
we can use a trace to examine in detail the reception of the event from the
endpoint to the IBM Tivoli Business Systems Manager adapter on the gateway.
Chapter 8. IBM Tivoli Monitoring integration 269
We wrote a script to enable tracing of the of the trace simultaneously to produce
smaller log files to review. The script is shown in Example 8-7.
Example 8-7 The trace batch file
wdmtrceng -e ibmtiv9 c:sam mw2k.log 3 1000000
wdmconfig -D tbsma.trace_level=2
wdmconfig -D adapter.trace.enable=true
wdmconfig -D transport.trace.enable=true
wdmconfig -D transport.trace.level=high
wdmmn -stop -b
We did not find anything significant in the tmw2k.log file so we will begin with the
review of the trace_tmnt_tbsm_eng1.log as shown in Example 8-8.
Example 8-8 The file trace_tmnt_tbsm_eng1.log
<F>1037738265000<F>Tue Nov 19 14:37:45
2002<F>AMW<F>tbsma<F>ibmtiv9<F>2968<F>MAX<F>../../../../src/objects/TMNTUpcall/
platform/TBSMAdapterProcessor_meth_imp.cpp<F>process_cached_events(cache_file_n
ame)<F>3710496<F>Sending events' stream:<F>None.
<event>
<time>1037738248</time>
<id>
<class>OperatingSystem</class>
<instid>os_ibmtiv9</instid>
</id>
<type>TMW_HighProcesses@TMW_Processor</type>
<context>[666252843]Processor=0;</context>
<tbsm>
<type>EXCP</type>
<desc>
High CPU Usage, High CPU Usage User Priv, and High CPU Usage
Process are exceeded on the processor 0. (;highprocesses=
2.0000;idprocess= 204.0000;percentprocessortime=
98.0000;process=&quot;CSRSS&quot;;processor=&quot;0&quot;)
</desc>
</tbsm>
<tecstatus>
<severity>CRITICAL</severity>
</tecstatus>
</event>
<event>
<time>1037738253</time>
Note: We have reformatted most of the XML tags in these examples for easier
viewing. In the real log file, the XML will be inline, appended into a single line.
270 Tivoli Business Systems Manager Version 2.1: End-to-End Business Impact Management
<id>
<class>OperatingSystem</class>
<instid>os_ibmtiv9</instid>
</id>
<type>TMW_TaskResult@TMW_Processor</type>
<context>[666252843]Processor=0;</context>
<tbsm>
<type>EXCP</type>
<desc>The tasks associated to the event &apos;
TMW_HighProcesses&apos;, have been submitted for execution.
(;eventtriggername=&quot;TMW_HighProcesses&quot;
;return_codes=&quot;[0]&quot;;task_libs=&quot;
[&apos;IBM Tivoli Monitoring Utility
Tasks&apos;]&quot;;tasks=&quot;
[&apos;dm_mn_send_notice&apos;]&quot;)
</desc>
</tbsm>
<tecstatus>
<severity></severity>
</tecstatus>
</event>
We can see here that the ibmtiv9 endpoint fired and invoked a
send_event_to_tbsm() request to the tmnt_tbsm_eng.exe process. This
information was then passed to the IBM Tivoli Business Systems Manager
wrapper process. This data also shows that we sent an information event to IBM
Tivoli Business Systems Manager that shows that a task has been invoked. We
set a task up to send information to the notice board in framework on an alert.
Note that this second event has no severity.
Next we go the the tmnt_tbsm_wrapper. The log file, shown in Example 8-9, is
trace_tmnt_tbsm_wrapper1.log.
Example 8-9 The file trace_tmnt_tbsm_wrapper1.log
<F>1037738265000<F>Tue Nov 19 20:37:45 2002 GMT<F>AMW<F>tbsma-wrapper<F><F>3996
<F>MAX<F>../../src/tbsm_adapter_wrapper/TBSMAWrapper.cpp<F>send_event<F>n/a<F>C
alling Adapter::sendEvent(DM+ibmtiv9-9.3.4.53-1389241399-0000000023, ...). XML
stream<F>None.
<event>
<time>1037738248</time>
<id>
<class>OperatingSystem</class>
<instid>os_ibmtiv9</instid>
</id>
<type>TMW_HighProcesses@TMW_Processor</type>
<context>[666252843]Processor=0;</context>
<tbsm>
Chapter 8. IBM Tivoli Monitoring integration 271
<type>EXCP</type>
<desc>
High CPU Usage, High CPU Usage User Priv, and High CPU Usage
Process are exceeded on the processor 0. (;highprocesses=
2.0000;idprocess= 204.0000;percentprocessortime=
98.0000;process=&quot;CSRSS&quot;;processor=&quot;0&quot;)
</desc>
</tbsm>
<tecstatus>
<severity>CRITICAL</severity>
</tecstatus>
</event>
<event>
<time>1037738253</time>
<id>
<class>OperatingSystem</class>
<instid>os_ibmtiv9</instid>
</id>
<type>TMW_TaskResult@TMW_Processor</type>
<context>[666252843]Processor=0;</context>
<tbsm>
<type>EXCP</type>
<desc>The tasks associated to the event &apos;
TMW_HighProcesses&apos;, have been submitted for execution.
(;eventtriggername=&quot;TMW_HighProcesses&quot;
;return_codes=&quot;[0]&quot;;task_libs=&quot;
[&apos;IBM Tivoli Monitoring Utility
Tasks&apos;]&quot;;tasks=&quot;
[&apos;dm_mn_send_notice&apos;]&quot;)
</desc>
</tbsm>
<tecstatus>
<severity></severity>
</tecstatus>
</event>
The tmnt_tbsm_wrapper process encapsulates this information into SOAP
format and forwards it via the sendEvent procedure to the IBM Tivoli Business
Systems Manager Common Listener using a Java-based message queuing
transport. Note that the time is converted to Greenwich Mean Time (GMT).
The CommonListener log file is shown in Example 8-10.
Example 8-10 CL20211191208.1.log
2002.11.19 14:38:53.062 com.tivoli.tbsm.commonlistener.ASIMQeListenerThread run
INFO: Thread Thread_1 received message from:
9.3.4.59.DM.QM+DM.Q+com.ibm.mqe.adapters.MQeTCP/IPHistoryAdapter+9.3.4.59+6969
272 Tivoli Business Systems Manager Version 2.1: End-to-End Business Impact Management
TransactionID: 0 MessageNumber: 1
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<tbsm:sendEvent xmlns:tbsm="urn:tbsm:1.0">
<event>
<time>1037738248</time>
<id>
<class>OperatingSystem</class>
<instid>os_ibmtiv9</instid>
</id>
<type>TMW_HighProcesses@TMW_Processor</type>
<context>[666252843]Processor=0;</context>
<tbsm>
<type>EXCP</type>
<desc>
High CPU Usage, High CPU Usage User Priv, and High CPU Usage
Process are exceeded on the processor 0. (;highprocesses=
2.0000;idprocess= 204.0000;percentprocessortime=
98.0000;process=&quot;CSRSS&quot;;processor=&quot;0&quot;)
</desc>
</tbsm>
<tecstatus>
<severity>CRITICAL</severity>
</tecstatus>
</event>
<event>
<time>1037738253</time>
<id>
<class>OperatingSystem</class>
<instid>os_ibmtiv9</instid>
</id>
<type>TMW_TaskResult@TMW_Processor</type>
<context>[666252843]Processor=0;</context>
<tbsm>
<type>EXCP</type>
<desc>The tasks associated to the event &apos;
TMW_HighProcesses&apos;, have been submitted for execution.
(;eventtriggername=&quot;TMW_HighProcesses&quot;
;return_codes=&quot;[0]&quot;;task_libs=&quot;
[&apos;IBM Tivoli Monitoring Utility
Tasks&apos;]&quot;;tasks=&quot;
[&apos;dm_mn_send_notice&apos;]&quot;)
</desc>
</tbsm>
<tecstatus>
<severity></severity>
</tecstatus>
</event>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset