Tib Hawk Webconsole Users Guide
Tib Hawk Webconsole Users Guide
Tib Hawk Webconsole Users Guide
Two-Second Advantage
Important Information
SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED
OR BUNDLED TIBCO SOFTWARE IS SOLELY TO ENABLE THE FUNCTIONALITY (OR PROVIDE LIMITED
ADD-ON FUNCTIONALITY) OF THE LICENSED TIBCO SOFTWARE. THE EMBEDDED OR BUNDLED
SOFTWARE IS NOT LICENSED TO BE USED OR ACCESSED BY ANY OTHER TIBCO SOFTWARE OR FOR
ANY OTHER PURPOSE.
USE OF TIBCO SOFTWARE AND THIS DOCUMENT IS SUBJECT TO THE TERMS AND CONDITIONS OF A
LICENSE AGREEMENT FOUND IN EITHER A SEPARATELY EXECUTED SOFTWARE LICENSE
AGREEMENT, OR, IF THERE IS NO SUCH SEPARATE AGREEMENT, THE CLICKWRAP END USER
LICENSE AGREEMENT WHICH IS DISPLAYED DURING DOWNLOAD OR INSTALLATION OF THE
SOFTWARE (AND WHICH IS DUPLICATED IN THE LICENSE FILE) OR IF THERE IS NO SUCH SOFTWARE
LICENSE AGREEMENT OR CLICKWRAP END USER LICENSE AGREEMENT, THE LICENSE(S) LOCATED
IN THE LICENSE FILE(S) OF THE SOFTWARE. USE OF THIS DOCUMENT IS SUBJECT TO THOSE TERMS
AND CONDITIONS, AND YOUR USE HEREOF SHALL CONSTITUTE ACCEPTANCE OF AND AN
AGREEMENT TO BE BOUND BY THE SAME.
This document contains confidential information that is subject to U.S. and international copyright laws and
treaties. No part of this document may be reproduced in any form without the written authorization of TIBCO
Software Inc.
TIBCO, The Power of Now, TIBCO ActiveMatrix BusinessWorks, TIBCO Hawk, TIBCO Designer, TIBCO
Rendezvous, TIBCO Enterprise Message Service, TIBCO Runtime Agent, TIBCO Administrator, TIBCO
ActiveEnterprise and TIBCO Repository are either registered trademarks or trademarks of TIBCO Software Inc.
in the United States and/or other countries.
EJB, Java EE, J2EE, and all Java-based trademarks and logos are trademarks or registered trademarks of Sun
Microsystems, Inc. in the U.S. and other countries.
All other product and company names and marks mentioned in this document are the property of their
respective owners and are mentioned for identification purposes only.
THIS SOFTWARE MAY BE AVAILABLE ON MULTIPLE OPERATING SYSTEMS. HOWEVER, NOT ALL
OPERATING SYSTEM PLATFORMS FOR A SPECIFIC SOFTWARE VERSION ARE RELEASED AT THE SAME
TIME. SEE THE README FILE FOR THE AVAILABILITY OF THIS SOFTWARE VERSION ON A SPECIFIC
OPERATING SYSTEM PLATFORM.
THIS DOCUMENT IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
THIS DOCUMENT COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS.
CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN; THESE CHANGES WILL BE
INCORPORATED IN NEW EDITIONS OF THIS DOCUMENT. TIBCO SOFTWARE INC. MAY MAKE
IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN
THIS DOCUMENT AT ANY TIME.
THE CONTENTS OF THIS DOCUMENT MAY BE MODIFIED AND/OR QUALIFIED, DIRECTLY OR
INDIRECTLY, BY OTHER DOCUMENTATION WHICH ACCOMPANIES THIS SOFTWARE, INCLUDING
BUT NOT LIMITED TO ANY RELEASE NOTES AND "READ ME" FILES.
Copyright 1996-2013 TIBCO Software Inc. ALL RIGHTS RESERVED.
TIBCO Software Inc. Confidential Information
| iii
Contents
Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vii
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
TIBCO Hawk Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Other TIBCO Product Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xiv
Connecting with TIBCO Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xvi
How to Join TIBCOmmunity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xvi
How to Access All TIBCO Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xvi
How to Contact TIBCO Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xvi
iv
| Contents
Suspending Alert Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Viewing Alert Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Viewing Warning and Exceptions Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
53
53
54
55
55
Contents v
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115
vi
| Contents
Figures vii
Figures
Figure 1
Agents Portlet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 2
Figure 3
Repository Portlet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 4
Figure 5
Figure 6
Chart Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 7
Figure 8
Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Advanced Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Figure 14
Figure 15
Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Figure 16
Figure 17
Figure 18
Figure 19
Figure 20
Rulebase-Map Toolbar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Figure 21
viii
| Figures
Tables ix
Tables
Table 1
Table 2
Toolbar icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Table 3
Table 4
Table 5
Table 6
Table 7
Toolbar icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
| Tables
| xi
Preface
Topics
xii
| Related Documentation
Related Documentation
This section lists documentation resources you may find useful.
TIBCO Hawk Installation, Configuration, and Administration Read this book first.
It contains step-by-step instructions for installing TIBCO Hawk software on
various operating system platforms. It also describes how to configure the
software for specific applications, once it is installed. An installation FAQ is
included.
TIBCO Hawk Programmers Guide All programmers should read this manual.
It contains detailed descriptions of Application Management Interface (AMI),
Application Programming Interface (API) concepts, and the TIBCO Hawk
security framework and its classes. It also contains detailed descriptions of
each class and method for the following APIs:
AMI API
Java, C++ and C API
Console API
Java API
Configuration Object API
Java API
Programmers should refer to the appropriate language reference sections for
the AMI API details. The TIBCO Hawk Application Management Interface
(AMI) exposes internal application methods to TIBCO Hawk.
TIBCO Hawk Plug-in Reference Guide Contains details about the Enterprise
Message Service, Messaging and JVM microagents methods that are used to
administer and monitor the TIBCO Enterprise Message Service server.
Preface xiii
TIBCO Hawk Release Notes Read the release notes for a list of new and changed
features. This document also contains lists of known issues and closed issues
for this release.
TIBCO ActiveSpaces
TIBCO ActiveSpaces Developers Guide
TIBCO ActiveSpaces Administration
TIBCO ActiveSpaces Installtion
TIBCO ActiveSpaces C Reference
TIBCO Rendezvous
TIBCO Rendezvous Concepts
TIBCO Rendezvous Administration
TIBCO Rendezvous Configuration Tools
xiv
| Typographical Conventions
Typographical Conventions
The following typographical conventions are used in this manual.
Table 1 General Typographical Conventions
Convention
Use
TIBCO_HOME
Many TIBCO products CAN be installed within the same directory. This
directory is referenced in documentation as TIBCO_HOME. The value of
TIBCO_HOME depends on the operating system. For example, on Windows
systems, the default value is C:\tibco.
Incompatible products and multiple instances of the same product should be
installed into different installation environments.
CONFIG_FOLDER
HAWK_HOME
code font
In large code samples, to indicate the parts of the sample that are of
particular interest.
Preface xv
Use
italic font
Key combinations
To introduce new terms For example: A portal page may contain several
portlets. Portlets are mini-applications that run in a portal.
Key name separated by a plus sign indicate keys pressed simultaneously. For
example: Ctrl+C.
Key names separated by a comma and space indicate keys pressed one after
the other. For example: Esc, Ctrl+Q.
The note icon indicates information that is of special interest or importance,
for example, an additional action required only in certain circumstances.
The tip icon indicates an idea that could be useful, for example, a way to
apply the information provided in the current section to achieve a specific
result.
The warning icon indicates the potential for a damaging situation, for
example, data loss or corruption if certain steps are taken or not taken.
xvi
If you already have a valid maintenance or support contract, visit this site:
https://support.tibco.com
Entry to this site requires a user name and password. If you do not have a user
name, you can request one.
|1
Chapter 1
Topics
Overview, page 2
| Chapter 1
Overview
TIBCO Hawk WebConsole application enables you to :
View the statistical data about events, alerts and actions on all the
infrastructure nodes that are being monitored, in the entire network as an
easy-to-understand color-coded heatmap.
UNIX
startH2DB.sh
startwebconsole.sh
3. After you start the Hawk WebConsole, in your browsers address box, enter a
URL of the following format:
http://<hostname>:<port number>/hawkwebconsole
For example, http://10.97.123.83:8080/hawkwebconsole
| Chapter 1
Chapter 2
Topics
Overview, page 6
| Chapter 2
Overview
When you login to the TIBCO Hawk WebConsole, it automatically discovers
machines running TIBCO Hawk agents on the network. The Agent portlet on the
Hawk Dashboard list all the agents. By default, agents are clustered in tabular
form and grouped by the Hawk domains.
Each agent has a set of default microagents, that are discovered by agent when it
is started. If you install and start an adapter or gateway, or instrument an
application with AMI, microagents for these objects are dynamically added to the
agent. In TIBCO Hawk WebConsole, you can view microagents and their
methods for any discovered TIBCO Hawk agents. For more details, see TIBCO
Hawk Concepts Guide.
The Hawk Dashboard screen is divided into four default portlets.
Agents
Agent HeatMap
Repository
Alerts
Agents Portlet 7
Agents Portlet
The Agents portlet displays all the agents grouped by domains in tabular view.
Figure 1 Agents Portlet
| Chapter 2
A brief description of every agent is displayed when you hover over the
agents in the Agents portlet
Agents portlet status bar displays a summary of "Alive" and "Offline" agents
count.
Clicking on an agent that is "Alive", a new Agent tab is opened. The name of
the Agent tab is same as the selected agent name <agent_name> .
Individual cells in the map are the alert levels represented as different colors and
the size of the individual cell is directly proportional to the number of
alerts/notifications of that type.
The colour scheme of the alerts indicate the following type of alerts:
- High
- Medium
- Low
- Notification
HeatMap Hierarchy
HeatMap implementation in Hawk WebConsole is a treemap representation.
Treemaps display hierarchical (tree-structured) data as a set of nested rectangles.
Each branch of the tree is given a rectangle, which is then tiled with smaller
rectangles representing sub-branches. A leaf node's rectangle has an area
proportional to a specified dimension on the data. The leaf nodes are colored to
show a separate dimension of the data.
10
| Chapter 2
button
Drill-Down Capability
Top level heat map shows all alerts in all agents in all domains. You can drill
down to any level of the hierarchy (dimension) to see the details. For example: if
there are 4 domains, you can drill down to one domain to see all the agents in the
domain in an expanded form. You can further drill down to an agent in the
domain to see all alerts expanded view. You can drill down to the last level in the
hierarchy.
HeatMap Realtime Updates
The HeatMap gets updated in based on the configuration provided in web.xml. It
can either be configured in auto mode or in timer mode.
auto mode: The heatmap updates are near real time. This mode can be used
for optimized performance.
timer mode: The heatmap is updated as per the time configured in web.xml.
This mode can be used if the load is high.
If agent previously had less number of high alerts, the size of high alerts cell for
the agent was small as compared to other cells. However, if the agent starts
generating large number of high alerts, then the size of high alerts cell for the
agent starts growing dynamically and all other cells in the entire heatmap are
automatically adjusted accordingly.
Repository Portlet 11
Repository Portlet
This portlet displays the repositories in the network. Clicking on every repository
icon opens a new tab for the repository.
Figure 3 Repository Portlet
12
| Chapter 2
Alerts Portlet
The Alerts portlet displays the alert list as well as bar chart representation of
alerts. It displays all alerts across domains.
This chart displays high, medium, low alerts and dead agents counts group by
each domain.
For every agent, a separate bar chart graph is displayed. The graph is displayed
with the category axis as "time" and value axis as number of alerts.
In the alert chart if the number of agents are less, then the X-axis values are
adjusted to properly use the space. In such a scenario, the X-axis values can be
fractional.
Dashboard Options 13
Dashboard Options
Dashboard options are available on the top right corner of the Hawk Dashboard
screen.
Goto-Dashboard
Selecting this option takes the control back to the Hawk Dashboard tab.
Save UI State
Selecting this option saves the current UI tab status in the database. All the open
tabs are saved and restores the state after login.
The UI state functionality depends on the persistence mode setting in the
web.xml:
true:
false: If the persistence mode is set to false, then the Save UI State option is
not available in the Options list.
About
Selecting this option provides detailed information about the Hawk WebConsole,
Hawk Domain, and Hawk Components.
14
| Chapter 2
Chapter 3
Topics
Overview, page 16
16
| Chapter 3
Overview
Alerts are messages an agent sends to TIBCO Hawk WebConsole. Alerts originate
from rulebases when a specified condition occurs that enforce your monitoring
logic. The Alerts screen is divided into two sections:
Alert List: Displays the alert and notification messages in tabular format.
1. Click an agent listed in the Agent portlet on the Hawk Dashboard tab. The
Agent <agent_name> tab opens.
2. Click the Alerts tab. The alert messages for the selected agent are displayed in
the Alert List section.
Figure 4 Alert List Tab
The Alert List displays alert and notification. When a test with an Alert or
Notification action becomes true, TIBCO Hawk WebConsole receives the
alert message unless advanced options delay it. For more information, see
Creating Actions, page 46.
The number of alerts displayed in the Alert List can be configured in web.xml.
18
| Chapter 3
Each line in the Alert List represents an alert sent by a single message
published by a TIBCO Hawk agent.
Any alert cannot be deleted from the alert portlet. To remove the alert from the
portlet, suspend it or delete the rulebase which generated that alert.
3. Use the filter bar available right above the each column heading to filter the
alerts list. The filter options available are as follows:
Read: Check the checkbox to view the alert messages that are read.
Cleared: Check the checkbox to view the alert messages that are cleared.
State: Select from the drop-down list to view the alert messages in the
selected alert state.
Alert Text: Type the alert text in the text box to view the alert messages with
the specified alert text content.
Alert Time: Type the alert time in the text box to view the alert messages
generated at the specified time.
Rulebase: Type the rulebase name in the text box to view alert messages
generated by the specified rulebase.
If Read checkbox is toggled to filter the alerts, it has 3 states of filtering the alerts:
Selected
Unselected
Both
4. Click the column heading to sort the alert list on the selected column.
5. Click the
icon to open the detail information panel for the alert message.
7. Click Clear All Alerts to remove alert entries from Alert List.
Viewing details for an alert message automatically selects the Read checkbox
in the Alert List. You can also manually select or unselect this field. As the
Alert List continuously updates, this feature helps you track alerts that have
already been reviewed.
20
| Chapter 3
To view alerts for all agents, go to the Alerts portlet on the Hawk Dashboard.
22
| Chapter 3
Alert suspension is lifted either when the suspension interval ends or when a user
invokes the resumeSuspendedAlerts method of the RuleBaseEngine
microagent. For more information on microagent methods, see the TIBCO Hawk
Microagent Reference.
Once suspended, the alert is cleared. Once cleared, it can be purged from the Alert
List, whether or not the problem condition is resolved. If the condition still exists
when the suspension interval ends, the agent generates a new alert message for
the condition.
24
| Chapter 3
For example: You choose the Day option. The moment an alert is generated, it is
displayed under the Now sub-interval. The next available sub-interval is 1 Hour.
As soon as alerts is 1 hour old, it is transferred from the Now sub-interval to the 1
Hour sub-interval. Similarly, alerts which were earlier displayed in 1 Hour
sub-interval are transferred to 2 Hours sub-interval and so on.
Alert charts are automatically refreshed for the following conditions:
1. When a new alert is generated.
2. Alerts get older and are ready to be transferred to next available sub-interval.
3. When you move to the Alerts tab under the parent <agent_name> tab . The
Alert Chart section is refreshed only when you are working on the Alerts tab.
26
| Chapter 3
Chapter 4
Topics
Overview, page 28
28
| Chapter 4
Overview
A rulebase is a collection of one or more rules. A rule is a user-defined monitoring
policy. It specifies:
A data source in the form of a microagent method
One or more tests that check for conditions
One or more actions to perform if a test result is true.
To know more about Rule, Test, and Actions, see TIBCO Hawk Concepts Guide.
Sample Rulebase
Sample rulebases are bundled with TIBCO Hawk installation. They are installed
in <HAWK_HOME>\5.0\examples\rulebases directory.
The HawkAgent-UNIX.hrb rulebase has a rule that monitors the Hawk.log file. If
TIBCO Hawk is installed in a directory other than the default, this rule will fail
and send out high alerts for noDataSourceErrors. If TIBCO Hawk is installed in a
directory other than the default, you must edit the rule to use the actual directory
path of the Hawk.log file.
Any tag missing in the rulebase xml will lead to error in use of the artifact. All the
tags are mandatory in .hrb file.
User Rulebases: Lists the rulebases created and saved in the database by the
user.
Rulebase / Rule / Test /Action editing screen: The screen displayed in this
section is based on the selected configurable object from the Rulebase Tree.
You can edit the following objects:
Rulebase: Refer to Creating a Rulebase on page 32 for further details.
Rule: Refer to Creating a Rule on page 36 for further details.
Test: Refer to Creating a Test on page 39 for further details.
Action: Refer to Creating Actions on page 46 for further details.
Toolbar Icons
The toolbar is located in the top right corner of the rulebase screen.
Figure 8 Toolbar
When you hover over the icons in the toolbar, a popup tool tip describes the tool.
The functionality of each icon is described in the following table:
Table 2 Toolbar icons
Toolbar
Icons
Description
Displays alerts for the selected rulebase.
30
| Chapter 4
Toolbar
Icons
Description
Creates a new rulebase.
Toolbar
Icons
Description
Saves the selected rulebase. The
functionality of this icon in the deployed
and user sections is as follows:
Import a rulebase.
Export a rulebase.
The toolbar icons are enabled or disabled based on the selected configuration
object.
32
| Chapter 4
Creating a Rulebase
To create a new rulebase using TIBCO Hawk WebConsole:
1. Click an agent listed in the Agents portlet on the Hawk Dashboard. The
Agent tab opens. The name of the Agent tab is same as the selected agent
name <agent_name>. The following tabs are available on the top right corner of
the screen:
Alerts (Default)
Rulebase
Schedules
Microagents
2. Click the Rulebase tab. The Rulebase screen lists the rulebases loaded by the
selected agent and provides a toolbar for performing rulebase operations.
3. Click the Create new Rulebase icon from the toolbar to create a new rulebase.
A new rulebase is created with the default name "New-Rulebase". Type
Sample in the Rulebase Name field.
The rulebase name must be unique on the agent. It may contain only numeric
digits, underscore ( _ ), hyphen ( - ), or a letter as defined by the UNICODE 2.0
standard. The latest version of the UNICODE specification can be found at
www.unicode.org/ucd.
Creating a Rulebase 33
34
| Chapter 4
2. Click
icon available on the Included Rulebases section title bar. A new
row is added to the Included Rulebases table.
3. Select an existing rulebase from the dropdown list to include.
4. Click
icon available on the Included Commands section title bar. A new
row is added to the Command table.
TIBCO Hawk WebConsole Users Guide
Creating a Rulebase 35
36
| Chapter 4
Creating a Rule
The following example uses the Process microagent as a representative data
source.
To create a new rule:
These instructions begin in the rulebase definition section. For instructions on
accessing this screen, go to Creating a Rulebase, page 32 section.
1. On the Rule Editing screen, choose a microagent and method.
Figure 10 Rule Editing Screen
Creating a Rule 37
2. This screen displays a list of microagents you can use as a data source for the
rule. TIBCO Hawk default microagents are listed along with microagents for
AMI adapters, gateways, and instrumented applications.
3. Select the Process microagent. The Methods panel displays the methods for
the microagent.
4. Select the getProcess method. The Description panel displays a detailed
description of the method, including arguments and return values. The
Arguments panel displays the fields for method arguments and a data
interval.
5. In the Process Name field, type rvd.*.
When invoked, the getProcess() method returns information about all
running processes. It takes the name of a specific process as an optional
argument and with no argument specified, the entire process table is returned.
In this case, the method returns all process instances that begin with the string
rvd.
The getProcess() method is a synchronous method. When the rule is active,
the agent subscribes to this method and receives data every 5 seconds, by
default. The data interval can be changed, if required. For asynchronous
methods, such as Logfile:onNewLine(), no collection interval is required.
You can reference both external and internal variables within data source
arguments. These must be typed in manually using the correct format, for
example, ${Internal.Agent Name} or ${External.HAWK_ROOT}. For more
information on referencing external and internal variables, see Referencing
Variables in a Rulebase, page 53.
6. Select the name of an existing schedule from the Schedule dropdown list to
apply to this rule. This is an optional field. By default, the rule is always
active. To know more, see Working with Schedules and Period Groups on
page 57.
7. Specify the Over-Ruling value by using the up and down arrow keys. This is
an optional field. For know more about Over-Ruling feature, see TIBCO Hawk
Concepts Guide .
8. Click the Apply & Add Test button to save the changes and proceed to the
defining the test process. Refer Creating a Test on page 39 for further
instruction.
9. Click the Apply Changes button to save the current changes. These changes
are available in the browser till the user logs out.
38
| Chapter 4
The rule is now configured to use the getProcess() method of the Process
microagent as a data source. The Rule screen displays
COM.TIBCO.hawk.Process:getProcess(Name=rvd.*):5 in the title bar.
Creating a Test 39
Creating a Test
The following procedure shows how to build a test expression by specifying a test
parameter and test operator in the Test screen. This example uses the MemUsage
microagent method result field and a numeric operator.
To create a new test in the current rule:
1. Go to the Test screen.
These instructions begin in the rule definition section. For instructions on
accessing this screen, go to Creating a Rule section.
Figure 11 Test Editing Screen
40
| Chapter 4
4. Select the > operator from the Operator dropdown list. Only operators that
apply to the current parameter are included in the list. Mem Usage is an integer
field, so numeric operators are listed. All test operators are described on the
following pages.
5. In the Greater than field, type the number 1000.
6. Select the name of an existing schedule from the Schedule dropdown list to
apply to this test. This is an optional field. By default, the test is always active.
For more information, see Working with Schedules and Period Groups on
page 57.
7. To specify Advanced option, click on the Show Advanced Options link. Refer
to Using Advanced Test Features on page 44 for further details.
8. Click the Apply Changes button to save the test expression.
This test now checks for instances of the process rvd using more than 1000
Kilobytes, or 1 MB, of memory when the test is evaluated. If all instances found
are using less than 1 MB of memory, no problem condition exists and the test is
false. Since getProcess is a synchronous method, the agent evaluates the test
every 60 seconds by default.
The following tables describe the test operators you can apply to numeric, text
and Boolean parameters.
Table 3 Test Operators For Numeric Method Results
Operator
Description
==
!
=
The test expression is true when the value of the test parameter
is (equal to, not equal to) the operator value.
<
<=
>
>=
The test expression is true when the value of the test parameter
is (less than, less than or equal to, greater than, greater than or
equal to) the operator value.
inRange
The test expression is true when the value of the test parameter
is between two extremes of a range. Endpoints are included.
Creating a Test 41
Description
OutOfRange
The test expression is true when the value of the test parameter
is outside the range of two operator values. Endpoints are
excluded.
Increase
The test expression is true when the value of the test parameter
has increased at least by the operator value between two
successive test evaluations. For example, the amount of disk
space in use has increased by more than 10 MB in a sample
period.
%Increase
The test expression is true when the value of the test parameter
increases by at least the operator value as a percentage (the
increase divided by the previous value times 100) between two
successive test evaluations. For example, the amount of disk
space in use has increased by more than 10 percent in a sample
period.
Decrease
The test expression is true when the value of the test parameter
decreases by at least the operator value between two successive
tests.
%Decrease
The test expression is true when the value of the test parameter
decreases by at least the operator value as a percentage (the
decrease divided by the previous value times 100) between two
successive test evaluations.
NetChange
The test expression is true when the value of the test parameter
increases or decreases by at least the operator value between
two successive test evaluations. The operator value specifies
the absolute value of the increase or decrease.
%NetChange
The test expression is true when the value of the test parameter
increases or decreases by at least the operator value as a
percentage (the increase or decrease divided by the previous
value times 100) between two successive test evaluations. The
operator value specifies the absolute value of the percentage
increase or decrease.
postedConditionExi
sts
42
| Chapter 4
Description
!postedConditionEx
ists
Description
Equals
!Equals
StartsWith
Contains
!Contains
Perl5
PatternMatch
Description
isTrue
The test expression is true when the value of the test parameter
is true.
Creating a Test 43
Description
isFalse
The test expression is true when the value of the test parameter
is false.
This test checks for rvd processes started with specific command options.
2. Select Match All from the dropdown list to group the highlighted expression
and add the AND operator.
3. In the compound test fields, click the Mem
operator.
Usage
5. Click the Apply Changes button to insert the expression into the highlighted
set of parentheses. The compound test now looks like the following:
((Command Contains rvd -listen tcp:7474) AND (Mem Usage > 1000))
44
| Chapter 4
This test evaluates to true when the specified rvd process uses more than
1000 Kilobytes, or 1 MB of memory. If the memory threshold is exceeded, the
test could trigger an action for restarting the process and notifying the system
administrator. For more information, see Creating Actions on page 46.
Processes named rvd that were started using different parameters, such as
-listen tcp:7475 are unaffected.
6. Click the Apply Changes button to save the test.
2. To specify a true test counter, type the number of true evaluations in the True
Test Counter field. The default value is 1.
With a true test counter, the action is triggered only after the test expression
has been true for the specified number of test evaluations. For example, to
check for consistently high CPU usage and ignore any brief spikes, you could
set the true test counter for the test to five. The action is triggered when the
test expression (CPU use high) is true for five consecutive test evaluations.
3. To specify a clear condition, click the First False, Clear Timer or Clear Test
radio button.
First False: After the test becomes true, the test is cleared when the first
time the test changes from true to false. This is the default behavior for a
test with a synchronous data source.
Clear Timer: Specify a wait interval in seconds. After the test becomes true
it remains true until this interval has passed without an additional true
Creating a Test 45
test. This is the default behavior for a test with an asynchronous data
source, and the default wait interval is 900 seconds (15 minutes).
Clear Test: Click Edit Clear Test to specify an extra test expression for
clearing the test. After the test becomes true, it becomes false only when
the clear test expression becomes true. The clear test uses the microagent
method result fields of the data source as input.
For example, a test monitors each line in a log file for the string Feed
Line
Down. If this string is found, an alert is generated. A clear test for the original
test checks for a log file line that signals the condition is resolved, such as
Feed Line Up. When the clear test evaluates to true, the original alert
message is cleared.
4. To specify action, select one of the following radio buttons for action type:
Clear Action
Consequence Action
then click the Apply & Add Action button.
46
| Chapter 4
Creating Actions
Each test has one or more related actions. An action can be of two types:
Consequence Action
Clear Action
Consequence Action
This action is the consequence of a rule, such as an alert message or a custom
script. The details are described below.
Creating an Alert Message with Variable Substitution
The following example shows how to create an alert message with variable
substitution as a representative action.
To define an action:
1. Go to Action screen.
Figure 14 Action Editing Screen
Creating Actions 47
2. Select an action type from the radio buttons across the top of the screen. These
buttons correspond to the following TIBCO Hawk action types:
Table 6 Action Types in the Action Editor
Action
Type
Alert
(default)
Result
Usage Notes
Sends an alert
message to TIBCO
Hawk WebConsole
Execute
Executes a command
on the TIBCO Hawk
agent machine
Notification
Sends a notification
message to TIBCO
Hawk WebConsole
Method
Invokes a
microagent method
on the TIBCO Hawk
agent machine
Sends an email
message.
Post
Condition
Creates a posted
condition to use in
another rule in the
same rulebase
48
| Chapter 4
Substituting variables in string fields is supported for all action types except
Post Condition. For more information on using variables in a rulebase, see
Referencing Variables in a Rulebase, page 53.
To insert an internal variable, click Insert Variable and select Internal
Variable from drop-down menu.
Internal variables available are:
Agent Name
Hawk Domain
Current RuleBase
Current Rule
Current Test
Current Action
Creating Actions 49
Variable syntax is added to the string field at the cursor location. The syntax
does not require modification. You can also manually type the syntax
${<return-field-name>} in the string field for an action, where return-field-name
is the label for a value returned by the method. The microagent method that
returns this field must be the data source for the current rule.
You can get more information for specific method return fields by viewing
descriptive help text for the method in the Microagents, Methods and Arguments
dialog. For instructions on accessing this dialog, see Working with Alert
Messages, page 15.
5. Select the name of an existing schedule from the Schedule dropdown list to
apply to this test. This is an optional field. By default, the test is always active.
For more information, see Working with Schedules and Period Groups on
page 57.
6. Click one the following buttons:
Save But do not Deploy : To save until user logs out.
Save and Deploy: To save it and deploy it to the agent.
Using Advanced Action Features
Advanced action options add flexibility in timing when an action is performed.
For example, using advanced options you can automate problem escalation
procedures.
50
| Chapter 4
2. To specify how actions are performed, click the Maximum, Once until the
alert message changes, Once Only, or Always radio buttons.
For Maximum, specify the maximum number of times the action can be
performed, no matter how long the associated test continues to remain
true. If the test becomes false, the counter is reset. Specify the number of
seconds to wait between actions as long as the test is true. The related
action can only be triggered at a test evaluation, so the actual interval
between actions may be longer than the specified interval.
This option is useful when the action executes a paging script. A single
page might be lost, but paging at each test evaluation (such as once per
minute) is too often. With this option you can send the page every five
minutes until it is likely to be received.
With Once until the alert message changes, the first time this action is
triggered by a test, the action is performed. On subsequent true
evaluations the action is performed only until there is a change in the alert
message.
This option is applicable only if the associated action creates an alert
message with some string variables. The action is performed each time the
TIBCO Hawk WebConsole Users Guide
Creating Actions 51
52
| Chapter 4
extension .xml is added to the filename if not specified. The template can
be loaded later.
d. You can also configure a saved template as the default template by
clicking Set Default from the Template menu and selecting the
appropriate template.
When a default template is set, the properties from the default template are
saved in the local database and loaded to the Advanced Options Editor
when an action is being edited. If a property from the default template
exists in the current action, the property from the default template is
ignored. The default template is on a per-user basis.
For existing rulebases, even if a default template is set, the actions in the
rulebase are NOT updated with properties from the default template unless
the action is edited using the Advanced Action Editor.
5. Click one the following buttons on the Action Editing screen:
Save But Do Not Deploy : To save in the browser until user logs out.
Save and Deploy: To save it and deploy it to the agent or repository.
Clear Action
A clear action is an action that takes place only when a test makes the
transition from true to false. After the test becomes true, whenever it
becomes false again one or more actions are performed. Clear actions behave
like regular actions but do not support advanced options except schedules,
and cannot generate alerts. They are useful for sending notifications or
all-clear messages.
A clear action can reference the same data source variables as the associated
test. For more information, see Referencing Data Source Variables on page 55.
For instructions on using this screen, see Creating Actions on page 46.
A clear action generated from a test cleared by using clear timer will not have
data source parameter variables available to the clear action, since it is a timer
and not a data source evaluation creating the clear event.
Data source, such as a microagent method result field (Data source variables
can be referenced in actions only)
54
| Chapter 4
You can reference external variables in string arguments of actions and in data
source method string arguments. For example, the Hawk Services sample
rulebase provides a rule for sending a high-level alert. Without variable
substitution, the text of the alert is generic. With variable substitution, the alert
includes information specific to the generating condition.
Restrictions
In Microsoft Windows, the following restrictions apply to external variables:
The variables file to support External variables in the agent must conform to
the Java properties file format.
Variables and variable names cannot include spaces or any of the following
characters: equals sign (=), period (.), or forward slash(\).
On UNIX systems, the env command outputs environment values in the correct
format.
To manually enter internal variables, specify the variable using the following
syntax:
${Internal.<variable>}
or so on.
The variables will be substituted with the appropriate value before the command
is executed. For example, the command Telnet ${Internal.Agent Name} will
be executed as Telnet kimyou if the command is executed for agent kimyou from
the Agent View.
where ${nextLine} is the text of the error message in the log. nextLine is a label
for values returned by the microagent method that gets information from the log
file. Without variable substitution, you could include only static text, such as High
level alert or a similar string, in the alert message.
and the agent will insert the name of the logical drive into the command line.
Variable substitution can cause actions to be taken more than once. If an action
raises an alert with a variable reference, a new alert is generated at each test
evaluation when the text message is different until the alert is cleared, even if the
action that raises the alert was configured to take place only once.
56
| Chapter 4
Chapter 5
Topics
Overview, page 58
58
| Chapter 5
Overview
A schedule is a configuration object that defines when a rulebase, rule, test or
action is active. The schedule screen enables you to define a schedule and deploy
the schedule. Then you can send the schedule to one or more TIBCO Hawk agents
or Repositories, and apply the schedule to rulebase objects.
To know more about Schedules and Period Groups, see TIBCO Hawk Concepts
Guide.
Schedule Item or Period Group: This section displays schedule item details if
you select Schedule Items tab in either the Deployed Schedule or User
Schedule section. Similarly, it displays period item details if you select the
Period Items tab in either the Deployed Schedule or User Schedule section.
This section is further divided in four sections:
Time Of Day
Week Day of Month
Day of Month
Month of Year
Toolbar Icons
The toolbar is located in the top right corner of the schedules screen.
Figure 15 Toolbar
When you hover over the icons in the toolbar, a popup tool tip describes the tool.
The functionality of each icon is described in the following table:
60
| Chapter 5
Description
Creates a new period group.
Toolbar
Icons
Description
Edits schedule comment.
Imports a schedule.
62
| Chapter 5
Toolbar
Icons
Description
Exports a schedule.
Creating Schedules 63
Creating Schedules
You define schedules in TIBCO Hawk WebConsole, then send schedules to agents
and Repositories on your network.
To create a schedule:
1. Click an agent listed in the Agents portlet on the Hawk Dashboard tab. The
Agent tab opens. The name of the Agent tab is same as the selected agent
name <agent_name> . The following tabs are available on the top right corner of
the screen:
a. Alerts (Default)
b. Rulebases
c. Schedules
d. Microagents
2. Click the Schedules tab. The Schedules screen displays the schedules defined
for the selected agent.
3. Click the
Create new schedule item icon from the toolbar to create a new
schedule item. Alternatively, click on the schedule item name in the Schedule
Item Tree to edit an existing schedule item.
4. A new schedule item is created with the default name "New-Schedule".
Double-click the default name field of the schedule item to edit the schedule
name. This name must be unique within the schedule items list and cannot
contain spaces.
5. Specify the Time Zone for the schedule item. By default, the time zone is set to
GMT.
64
| Chapter 5
6. You can define inclusions periods and exclusion periods for a schedule-item.
Click the arrow icon to expand the "New Schedule" tree. You can see the
Include Periods and Exclude Periods options.
7. To define new inclusion period, select Include Periods and click the
Create new period item icon from the toolbar.
8. The Schedule Item section of the screen is enabled.
For a period item to be valid, you must select at least one interval in each
category in the Schedule Item section: Time of Day, WeekDay of Week, Day of
Month, and Month. If one or more categories has no selections, the schedule is
not used.
9. The schedule item is defined in four parts. The detailed steps are provided in
the following sections:
a. Define Time of Day, page 65
b. Define Week Day of Month, page 66
c. Define Day of Month, page 67
d. Define Month of Year, page 68
10. When the inclusion period is completely defined, click Apply button to save
the changes locally. The Schedule Item Tree is updated with the new schedule
item details.
11. You can define an exclusion period, if required. Select Exclude Periods from
the Schedule Item Tree and click the
Create new period item icon from
the toolbar.
Creating Schedules 65
12. Then repeat this procedure from step 8 to step 10, selecting the times, days,
dates and months that the schedule item should not include.
For example, to create a schedule item of 9:00 AM to 11:59 AM and 1:00 PM to
4:59 PM, you can define an inclusion period of 9:00 AM to 4:59 PM, then add
an exclusion period of 12:00 PM to 12:59 PM.
13. Click Apply to save the changes locally. The Schedule Item Tree is updated
with the new schedule item details. At this point the schedule definition is
stored in browser cache on the current machine.
14. Click the
Deploy icon from the toolbar to deploy the schedule updates on
the corresponding agent or in the Repository. When the schedule is updated
on the agent, the schedule will take effect immediately.
Define Time of Day
Perform the following steps to define the Time of Day values in the Schedule
Item section:
1. Select one or more Time of Day intervals. There are four pre-defined intervals
available:
All Day 12:00 AM to 11:19 PM
AM 12:00 AM to 11:59 AM
PM 12:00 PM to 11:59 PM
9 to 5 9:00 AM to 4:59 PM
By default, the 9 to 5 interval is displayed when the a new period item is
added. You can select a different pre-defined interval by clicking on the
Options drop-down list. The selected interval is displayed in the Time of Day
section title bar and in the Start and End fields. (Clicking on a pre-defined
interval also resets the Start and End times to the selected interval.)
2. To create a custom interval, double-click the time interval entry and type new
values for Start and End fields.
3. To add another interval, click the
Add new time period icon on the Time
of Day section title bar. Another set of Start and End intervals are added. If an
interval is selected when you click the
Add new time period icon, the new
interval is placed after the selected interval. If no interval is selected when you
click the
Add new time period, the new interval is placed before the
existing intervals.
By default, the new interval is the largest possible interval that can be
specified. You can click in these fields to modify the interval, if desired.
66
| Chapter 5
Delete icon.
You can have as many intervals as desired, but the intervals cannot overlap in
time and cannot span more than 24 hours. For example, if the first interval starts
at 12:00 AM, the last interval must end at 11:59 PM or earlier.
Go back to step 9 of Creating Schedules section.
Define Week Day of Month
Perform the following steps to define the Week of Day values in the Schedule
Item section:
1. Select the days of the week and weeks in the month for the interval in the
Week Day of Month section.
2. There are five pre-defined sets of days available on the Options drop-down
list. You can also click an individual day to select it:
Weekday Mondays through Fridays
Weekend Saturdays and Sundays
Select All Every day
Unselect Unselects all days
Toggle Selection Selects the days that are currently not selected, and
unselects the selected day
3. There are five weeks available, selected by clicking the appropriate checkbox:
First The first occurrence in the month of the checked day(s)
Second The second occurrence in the month of the checked day(s)
Third The third occurrence in the month of the checked day(s)
Fourth The fourth occurrence in the month of the checked day(s)
Last The last occurrence in the month of the checked day(s).
The following selection shows the first and third Mondays in the month are
selected:
Creating Schedules 67
3. The WeekDay of Month and Day of Month selections must overlap in order
for a day to be selected.
For example, Example 1 of the previous step shows the first and third
Mondays of each month selected. Because these days fall on a different date
each month, the selected Days of Month would have to include the 1st
through 22nd in order to make sure the first and third Mondays fell on
selected dates.
TIBCO Hawk WebConsole Users Guide
68
| Chapter 5
In Example 2 of the previous step, the selected Days of Month would have to
include the 22nd through the 31st to ensure the last Saturday fell on a selected
date.
Go back to step 9 of Creating Schedules section.
Define Month of Year
Perform the following steps to define the Month of Year values in the Schedule
Item section:
1. Select the month to be included from the Month of Year section. There are
seven pre-defined sets of months:
First Quarter January through March
Second Quarter April through June
Third Quarter July through September
Fourth Quarter October through December
Select All All twelve months
Unselect Unselects all months
Toggle Selection Selects the months that are currently not selected, and
unselects the selected months
In the following example, January, February and March are selected.
2. Click the
Create new period group icon on the toolbar to create a new
period group. Alternatively, click the period group name from the Period
Group Tree to edit an existing period group.
70
| Chapter 5
6. Click the
Create new period item again to create the next schedule item.
Continue until all scheduled items are created. For example, if you are
creating a Holidays period group, the list may look like this:
7. Click the Apply button to save changes locally. At this point the period group
definition is stored in browser cache on the current machine.
8. Click the
Deploy icon from the toolbar to deploy the period group
updates to the current agent. When the period group is updated on the agent,
it will take effect immediately.
9. To apply the period group to a schedule item, display the existing schedule
items by clicking the Schedule Items tab. The Schedule Item Tree is displayed.
10. Select a schedule item and click either Include Periods or Exclude Periods.
Note that the
Refer to a period group icon is enabled on the toolbar.
11. Include or exclude the period group:
To include the period group in the existing schedule item, select Include
Periods and click the
Refer to a period group icon on the toolbar.
To exclude the period group, select Exclude Periods and click the
Refer
to a period group icon on the toolbar. In this example, the period group
Holidays is excluded from the WorkSchedule schedule item.
12. Select the appropriate period group from the Refer Period Group dialog and
click Apply.
13. The period group is added to the existing schedule item in the Include
Periods or Exclude Periods section. The scheduled items in the period group
are indented under the period group name.
14. Click the Apply button to save the changes locally. At this point the changes
to the schedule definition are stored in browser cache on the current machine.
15. Click the
Deploy icon on the toolbar to deploy the schedule updates to the
current agent.
72
| Chapter 5
Testing Schedules
After creating a schedule, you can test it dynamically before applying it to
rulebase objects. Testing allows you to specify a time and date, then determine
which schedules are in-schedule or out-of-schedule at that particular time.
To test a schedule:
1. Select a schedule item from the Schedule Item Tree. This enables the
Schedules icon. Click the
Test Schedules icon on the toolbar.
Test
3. Select the name of a schedule to test from the Schedule drop-down list.
4. Specify the date to test in the Date field. You can also use the date chooser to
select a date. The test will indicate whether each schedule is in-schedule on
the selected date. The default value is the current date.
5. Specify the time to test in the Time field. The test will indicate whether each
schedule is in-schedule at the selected time. The time is in a 24-hour format of
hh:mm where hh is 00 to 24 and the default value is the current time.
While testing schedule items, the time zone setting for schedule item is
considered.
6. Click Test.
Testing Schedules 73
The Test Schedules dialog displays the results of the test. Schedules that will
be in-schedule at the specified date and time are marked with a check in the In
Schedule column as shown:
74
| Chapter 5
Chapter 6
Topics
Overview, page 76
76
| Chapter 6
Overview
Microagents represent managed objects such as operating system subsystems,
agent components, log files, event logs or applications. Each microagent exposes a
set of methods to the agent that the agent uses to collect information and take
action.
To know more about Microagents, see TIBCO Hawk Concepts Guide.
In TIBCO Hawk WebConsole, you can view microagents and their methods for
any discovered TIBCO Hawk agents. The following operations are supported for
microagents:
78
| Chapter 6
3. Click Self from the microagent list to display the list of methods in the
Methods panel. The Self microagent represents the TIBCO Hawk agent
itself. Its methods generally provide information about the agent.
4. Click the getMicroagentInfo method from the list displayed in the Methods
panel. A detailed help description is displayed in the Description panel.
Methods can return information about a managed object, take an action that
modifies the managed object, or both.
The getMicroAgentInfo method returns the names of microagents currently
active on this agent. It takes a test string for microagent name as an optional
argument, but if no name is specified it returns a list of all microagents for this
agent. Invoking this method without arguments returns a list similar to the
TIBCO Hawk WebConsole Users Guide
button.
The Invocation Results window displays the results returned by the method:
Figure 17 Invocation Results Window
Methods can return either a single record with one or more fields, or tabular
data with one or more columns and rows. This method returns tabular data
with each row corresponding to a separate component.
To sort tabular results in the window, click on a column header. There are
multiple column display options available.
7. Click the
of microagents.
80
| Chapter 6
8. Click the
button to export the microagent definition on the local
machine. The microagent definition is saved as a logfile.hmd.
82
| Chapter 6
Data points are added dynamically, as they are returned by the method. The
chart automatically assigns a range to the Y axis based on the values collected;
the X axis always represents time.
Since the field to chart is a numeric result field, both Chart View and Tabular
View tabs are active. If the result contained only text, you would see a table.
6. You can select a different row in the Select Chart Fields drop-down list and
view the subscription for that instance at the same time. This allows you to
compare data between different agents or microagent methods. For example,
if you have two versions of an instrumented application (one with a new,
faster algorithm and one with an older algorithm), you can compare
performance of the versions. All charts are active for as long as the
subscription exists.
7. Select the Slide Time checkbox to see the graphs in a sliding window with the
facet representing time sliding. If the Slide Time checkbox is cleared, you can
see a consolidated average result over all time periods in the window.
8. To change the data interval use the Change Interval text box. You can either
type a new value or change the value using the spinner.
9. Click the
84
| Chapter 6
2. Specify a unique name for the new dashboard and click OK.
3. A new dashboard tab is created with the specified name.
To move Subscription Results Window to the custom dashboard:
1. On the Subscription Results window, click the Move to drop-down list. The
user created custom dashboards are listed.
2. Select the required dashboard from the drop-down list to move the
Subscription Results window to a user created custom dashboard.
Chapter 7
This chapter describes how to perform network queries and network actions on
multiple remote TIBCO Hawk agents using TIBCO Hawk WebConsole.
Topics
86
| Chapter 7
1. Select the Network Query tab from the TIBCO Hawk WebConsole screen. The
Network Query screen is displayed.
2. Go to the Choose Agents panel to select one or more Hawk agents. The list of
discovered agents is displayed. Click to expand the domains until a list of
individual agents is displayed.
3. Select the agent checkbox to include an agent in the target list. To remove an
agent, clear the checkbox.
4. Click Choose Microagent and Method panel. TIBCO Hawk WebConsole
looks up microagents and methods for the selected agent, and displays them
in the MicroAgent-Method tab.
5. Select Invoke a method radio button from Choose Microagent and Method
panel title bar to invoke a method. This radio button is the default selection.
6. Select the SysInfo microagent and getOperatingSystem method. This method
returns operating system details for the target agents. For instructions on
TIBCO Hawk WebConsole Users Guide
88
| Chapter 7
A test is applied to microagent method results for every agent in the target list.
This test expression specified in the above example returns all agents running
on Linux operating system. For instructions on building test expressions,
Creating a Test, page 39.
Advanced test options, such as clear timers and clear tests, are not supported for
network query.
10. Click Test Condition. While agents are queried, the message Request Sent is
displayed in the Query Result column of the results table. It might take
several seconds for all agents in the target list to respond.
11. The results of the network query are displayed in the Results section of the
screen:
90
| Chapter 7
The status bar displays the number of agents with Success, Error, and
Timeout status.
Success: Agents that received the query and responded successfully.
Error: Agents that could not process the query.
TimeOut: Agents that did not respond, usually due to a network problem.
13. For network queries with no test, a list of agents responding to the query are
displayed. Click the
icon for any agent in the list to view query results.
Results can be a simple value or a table with result records (rows) and result
fields (columns).
14. For network queries with a test, click the
icon for any agent in the list to
view the test result details. Like tests in a rule, only a true or false value is
returned.
15. You can mark any agents listed in the results table as the subject of a second
query or a network action. Select the agents from the Results section and click
Set Targets. The selected agents replace the agents on the target list. The next
query or action is sent only to those agents.
92
| Chapter 7
6. Click
results.
7. Click the
Network query and action are interactive tools, so conditions you identify and
solve in this manner might return without warning. If a particular network query
repeatedly yields a true result, you should consider formalizing query and action
steps in a rulebase. The rulebase could contain a single rule to check for disk space
usage greater than 90 percent, then call the cleanup script. A second action could
notify you by email that the script was run. You could distribute this rulebase to
all agents, or just agents with a pattern of high disk space usage. For more
information, see Working with Rulebases, page 27.
Chapter 8
This chapter describes the advanced TIBCO Hawk rulebase feature like
Rulebase-Map and shows how to create different type of mappings using TIBCO
Hawk WebConsole.
Topics
Overview, page 94
94
| Chapter 8
Overview
A rulebase-map is a configuration object that maps rulebases to TIBCO Hawk
agents on your network. It directs TIBCO Hawk agents or groups of agents on
your network to load particular rulebases at startup. For example, using a
rulebase-map you can instruct an agent to load a rulebase designed specifically
for the operating system where it runs.
To efficiently manage agent configuration, an entire enterprise should use the
same rulebase-map. Configuration objects access the rulebase-map using the
same configuration source they use to access rulebases.
Rulebase-maps are supported only when running in Manual Configuration
mode. For more information, see TIBCO Hawk Installation Configuration and
Administration Guide.
When creating a rulebase-map, you typically group agents on your network
according to rulebase requirements. Then you map individual rulebases to agents
and groups of agents and distribute the rulebase-map to other repositories.
Agents in Manual Configuration mode load the rulebase-map when started to
determine which rulebases they require. Agents then proceed to load these
rulebases, if they exist in the configuration source.
Sample Rulebase-Map
Sample rulebase-map is bundled with TIBCO Hawk installation. They are
installed in <HAWK_HOME>\5.0\examples\rulebases directory.
Any tag missing in the rulebase-map xml will lead to error in use of the artifact. It
is mandatory to include the <Name></Name> tag in the .hrm file of rulebase-map.
Deployed Rulebase-Map
User Rulebase-Map
Mapping section: This section displays the mapping options based on the
mapping object selected in either the Deployed Rulebase-Map section or
User Rulebase-Map section. The following mapping options are available:
Rulebase to Agent/Groups: Refer Mapping Rulebases to Agents or
Groups, page 103 for further instruction.
Groups to Agents/Groups: Refer Mapping Groups to Agents or Groups,
page 101for further instruction.
Group to External Command: Refer Mapping Groups to External
Commands, page 105 for further instruction.
Deployed Groups
User Groups
96
| Chapter 8
Toolbar Icons
Toolbar is located in the top right corner of the screen.
Figure 20 Rulebase-Map Toolbar
When you hover over the icons in the toolbar, a popup tool tip describes the tool.
The functionality of each icon is described in the following table:
Toolbar
Icons
Description
Creates a new agent group on the repository.
Toolbar
Icons
Description
Synchronizes your copy of the rulebase-map
with the copy on the WebConsole server.
Import a rulebase-map.
Export a rulebase-map.
98
| Chapter 8
Creating a Rulebase-Map
You create and deploy a rulebase-map using TIBCO Hawk WebConsole. Agents
running in Manual Configuration mode with the Repository or Configuration
Path options can use the rulebase-map the next time they are started.
To create or edit a rulebase-map:
1. Click the repository listed in the Repository portlet on the Hawk Dashboard
tab.
2. A new repository tab opens. The name of the repository tab is same as the
selected repository name <repository_name>. The following tabs are available on
the top right corner of the screen:
a. Rulebase (Default)
b. Schedules
c. Rulebase-Map
3. Click the Rulebase-Map tab. The Rulebase-Map screen is displayed.
4. You can create the following mappings from this screen:
Rulebase to Agent/Groups: Refer to Mapping Rulebases to Agents or
Groups
Groups to Agents/Groups: Refer to Mapping Groups to Agents or Groups
for further instructions.
Groups to External Commands: Refer to Mapping Groups to External
Commands for further instructions.
5. When the rulebase-map updates are complete, click
Deploy icon from the
toolbar to deploy the rulebase-map changes to the repository.
100
| Chapter 8
4. Select Group to Agent/Groups option from the Mappings tree and click
Create new group icon from the toolbar. The Create New Group dialog is
displayed.
5. Type the name of the new group and click OK to create the new group.
6. The new groups are also displayed in the Group Tree of Deployed Groups
section.
Ensure that every user-defined agent group has an active mapping to either an
agent, rulebase, or command. All user-defined agent groups without any
mapping are deleted when a rulebase-map is deployed to the repository.
3. Similarly, the Agent/Group drop-down list displays all the existing agents
and groups.
102
| Chapter 8
5. Click the
6. The new group to agent/group mappings are also displayed in the Group
Tree of the Deployed Groups section.
The groups tree also indicates the mapping status of the groups.
If the rulebase does not exist yet, click the Rulebase tab to create rulebases for the
repository. For more information on creating rulebases, see Creating a Rulebase,
page 32.
3. Similarly, the Agent/Group drop-down list displays all the existing agents
and groups.
104
| Chapter 8
4. Click
Save changes locally icon from the toolbar to save the new mapping
locally. The new mappings are added to the list.
5. Click
You need to make the following settings in the hawkagent.cfg file to ensure that
the agent to rulebase mapping is functional.
1. Omit the -auto_config_dir option.
2. Set the -repository_path option to the repository where the rulebase is
deployed.
For more information on hawkagent.cfg file options, see TIBCO Hawk Installation
Configuration and Administration Guide.
4. Click
Save changes locally icon from the toolbar to save the new
mapping. The new mappings are added to the rulebase map.
5. Click
list.
106
| Chapter 8
2. Select one or more repositories to send the rulebase map to. Click Send To
Repo button. The results screen is displayed.
108
| Chapter 8
Chapter 9
This chapter describes the common features that are available for the configurable
objects.
Topics
110
| Chapter 9
Database Persistence
If the persistence mode is enabled for the WebConsole deployment, all TIBCO
Hawk configuration objects can be saved locally to the database before deploying
them to the agents. Refer to the TIBCO Hawk Installation, Configuration, and
Administration Guide for enabling the persistence mode.
The configuration objects enabled for database persistence are:
RuleBases
RuleBase Map
Schedules
For each of these objects, there are two separate sections displayed on the editing
screen:
Deployed <component>: Lists the objects that are deployed to the agents.
User <component>: Lists the objects that are saved on the local database.
For example: User RuleBases section will show the rulebases persisted in the
database by the current user.
112
| Chapter 9
Local - Indicated by an
icon. This state is supported only for rulebases. In
this state, the object is not deployed and is available in the browser till the user
logs out.
Notification Area
The configurable object editing screens provides the notification status
information. The top left corner of the toolbar strip displays the last notification
received.
Figure 21 Notification Area
Server notifications
114
| Chapter 9
| 115
Index
accessing
Action Editor 46
Action Editor, accessing 46
actions
advanced options 50
creating 46
escalating 51
network 91
specifying variables in 53
substituting variables in 55
advanced
action options 50
test options 34, 44
Advanced Action Editor, accessing 50
Advanced Test Editor, accessing 34, 44
agents
performing actions on multiple 91
querying multiple 85
querying remote 86
viewing alerts for 17, 17, 23, 23
Alert Display
description of 17, 23
alerts
marking all 19
suspending 21
viewing for an agent 17, 23
D
data source variables 55
E
email, sending with actions 47
escalating actions 51
evaluation intervals, test 38
expressions
building test 39
external variables 53
referencing in a rulebase 53, 54
B
Boolean test operators 42
F
false host list 90
first false option 44
116
| Index
I
including rulebases 34
in-schedule 72
internal variables 54
intervals
test evaluation 38
Period Groups 57
Perl5PatternMatch
test operator for 42
Post Condition, action type 47
posted conditions
creating with actions 47
test operators for 41
problem escalation 51
M
marking alerts 19
memory usage, testing 40
methods, microagent
invoking remotely ??91
referencing in actions 55
results of 79
microagents
default platform-independent 15
Q
queries, network 86
querying multiple agents 85
R
N
network actions 91
network queries
adding tests to 88
definition 85
sending 86
viewing results of 90
numeric test operators 40
rulebase map
creating 98
defining agent groups ??100
definition 94
rulebases
applying schedules to 15, 27, 57, 75
including 34
referencing internal variables in 54
S
O
operators, test
specifying 40
specifying values for 40
schedules
creating 63
definition 15, 27, 57, 75
testing 72
sending
email with actions 47
specifying
external variables in actions 48, 48
support, contacting xvi
suspending alerts 21
Index 117
syntax
data source variable 55
external variable rulebase 53
internal variable 54
T
technical support xvi
Test Builder, accessing 39
Test Editor, accessing 39
testing
schedules 72
tests
adding to network queries 88
advanced options 34, 44
Boolean operators 42
compound 43
creating in a rule 39
description 38
evaluation intervals 38
numeric operators 40
scheduling 44
specifying clear conditions for 44
specifying expressions in 39
TIBCO_HOME xiv
true host list 90
V
variables
effect on actions 55
referencing data source 55
referencing external 53
referencing internal 54
specifying in actions 53
viewing
alert messages 17, 23
alerts for an agent 17, 23
118
| Index