Tib Hawk Plugin
Tib Hawk Plugin
Plug-in Guide
Software Release 4.6
August 2005
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
TIBCO HAWK ADMINISTRATOR’S GUIDE). 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.
TIB, TIBCO, Information Bus, The Power of Now, TIBCO Adapter, 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, J2EE, JMS 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. Please see the readme.txt 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.
Copyright © 1996-2005 TIBCO Software Inc. ALL RIGHTS RESERVED.
TIBCO Software Inc. Confidential Information
| iii
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
TIBCO Hawk Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi
Other TIBCO Product Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
How to Contact TIBCO Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viii
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Preface
This manual describes the TIBCO Hawk plug-ins, Hawk Console and Monitoring
Management. These plug-ins are accessed via TIBCO Administrator.
Topics
Related Documentation
For comments or problems with this manual or the software it addresses, please
contact TIBCO Support as follows.
• For an overview of TIBCO Support, and information about getting started
with TIBCO Support, visit this site:
http://www.tibco.com/services/support
• If you already have a valid maintenance or support contract, visit this site:
http://support.tibco.com
Entry to this site requires a username and password. If you do not have a
username, you can request one.
Topics
• Overview, page 2
• All Alerts Console, page 4
• Invoking TIBCO Hawk Microagent Methods, page 8
Overview
The Hawk Console plug-in provides functionality which lets you view all TIBCO
Hawk alerts generated in your TIBCO Administrator domain and provides a
mechanism to invoke microagent methods on the machines in your domain.
The TIBCO Hawk alerts are accessed via the All Alerts console in TIBCO
Administrator. For details, see All Alerts Console on page 4.
The Hawk Console plug-in adds a tab Agent to the View Machine dialog. The
Agent tab lists the available microagents and the rulebases defined for the TIBCO
Hawk agents corresponding to the machines in the domain. See Invoke
Microagent Methods on page 9 for details.
Installation
The Hawk Console plug-in is installed by the TIBCO Hawk 4.6 installation
process and is accessed via TIBCO Administrator.
It is strongly recommended that only administrators have access to the All Alerts
console and Hawk. Console.
When accessing TIBCO Hawk methods using the Machines console, if a user has
read access to the Machines console, only those methods where the Impact type is
IMPACT_INFO are listed. If the user have read-write access to the Machines
console, all TIBCO Hawk methods for the microagent are listed. When a method
is listed, then the user can invoke or subscribe to that method.
You can view all TIBCO Hawk alerts generated in your domain from this console.
Here you can specify search conditions to filter the alerts that are displayed. This
console is accessed by clicking Application Management>All Alerts from the
left-hand pane of TIBCO Administrator.
See TIBCO Administrator Access for Hawk Console Functionality on page 2 for
the permissions required to access the All Alerts Console.
Alerts
This console contains the following fields:
State — Choose either Any, Active, Cleared, or Custom.
Add Search Condition — The following options are available:
• Date/Time — Specify the date and time before or after which you want to
filter the alerts.
• Level — Lowest level of the alert. Possible choices are High, Medium, Low,
Notification or Custom.
This level indicates the lowest alert level that you want to search for.
For example, if you choose medium, both medium and high alerts will be
displayed and if you choose low, all alerts will be displayed.
• Agent — Name of the agent.
• Rulebase — Name of the rulebase that generated the alert.
• Deployment — Name of the deployment.
• Component Instance — Name of the component.
When more than one selection condition can be specified, one of the following
options must also be chosen:
• Show entries where ALL conditions are true
• Show entries where ANY conditions are true
Search — Click this button to apply the chosen search conditions to the list of
generated alerts.
Purge Cleared Alerts — Used to purge alerts that have been cleared.
Alerts that are cleared will stay in the list for 30 minutes if user does not click the purge
alert button.
List of Alerts
For each alert, the following information is displayed:
Date/ Time — Date and Time of the alert.
Domain — The domain where this alert originated.
Cleared — Whether this alert has been cleared. If the alert is cleared a X is
displayed in this column.
Alert Level — Level of the alert represented by the alert icons. Table 1, Alert Icons,
on page 6 list the alert icons.
Text — Text belonging to the alert.
detail — Click on this field to view details about the generated alert.
Alert Details
This dialog lists details of the chosen alert.
Details
Date/ Time — Date and Time of the alert.
Alert Level — Level of the alert represented by the alert icons. Table 1, Alert Icons,
on page 6 list the alert icons.
Text — Text belonging to the alert.
Properties
Domain — The domain where this alert originated.
Agent — The TIBCO Hawk Agent which generated this alert.
Rulebase — The TIBCO Hawk rulebase which generated this alert.
DataIndex — If the alert was generated from a rule with composite data sources,
this value is ’_’. If the alert was generated from a rule with a tabular data source,
this value is _<indexField>:<indexValue>. Where <indexField> and
indexValue> refer to values in the tabular data source.
Action — The number corresponding to its position in the action list for the test as
defined in the rulebase.
Rule — The rule which uses the specified datasource to test for certain conditions.
DataSource — The datasource for the rulebase.
Test — The test performed on the datasource.
Suspend
Reason — The reason for suspending the alert.
Suspend Interval — The duration in seconds for which the alert should be
suspended.
Suspend — Click this button to suspend the alert.
For more information on suspending alerts, refer to TIBCO Hawk Administrator’s
Guide.
Alert Icons
Any alert generated by the TIBCO Hawk agent corresponding to the managed
object is displayed. The color of the managed object icon reflects that of the alert.
The colors are either yellow, amber, or red representing low, medium, or high
alerts respectively. Within the managed object icon, alerts are additionally
represented by a series of alert icons. The color of these icons reflects the color of
the managed object. The color of these icons reflects the color of the managed
object.
Icon Description
There are no alerts generated.
Low alert.
Medium alert.
High alert.
Icon Description
Unable to communicate with the TIBCO Hawk Agent.
You can invoke microagent methods on the machines in your domain. Click
Resource Management> Machines for the list of machines in your domain and
then click the machine name.
Clicking on a machine name brings up the View Machine dialog. This dialog has
an additional tab: Agent.
See TIBCO Administrator Access for Hawk Console Functionality on page 2 for
the permissions required to access the Agent tab.
Agent Tab
This dialog lists the available microagents and the rulebases defined for the agent.
Microagents
Displays the available microagents and for each microagent the following
information is displayed:
• Name — Name of the microagent.
• Instance — Number to identify the running instance
• Description — Description of the microagent.
Click on a microagent name for the list of associated microagent methods.
Rulebases
A list of the loaded rulebases is displayed.
Rulebases — The name of the rulebase. Click on this field to sort the rulebase
names.
Click on a rulebase name to view details of the rulebase.
Methods
The following fields are displayed for the microagent methods:
Method
Displays general information about the microagent method:
• Name —The name of the microagent method.
• Description — Description of the microagent method.
• Type — Type of the microagent method, either Synchronous or
Asynchronous.
• Impact — The function performed by the method and can be one of the
following types:
— IMPACT_INFO returns information.
— IMPACT_ACTION performs an action on the TIBCO Hawk system.
— IMPACT_ACTION_INFO both returns information and performs an action
based on it.
• Time Out — The method invocation timeout value in milliseconds.
Invocation
Parameters — Displays the following elements for the parameters:
— Name — Name of the input argument.
— Value — Value of the input argument.
— Type — Data type of the argument.
Description — Description of the argument.
Subscribe — Available for methods of type IMPACT_INFO and
IMPACT_ACTION_INFO. You cannot subscribe to methods of type IMPACT_ACTION.
Information is returned by the method either synchronously or asynchronously.
If the Subscribe checkbox is selected, the following fields are displayed along with
the default values:
— Data Interval — The time interval for collection data points. Available
when subscribing to synchronous methods.
— History — The number of data points you want to see for historical data set.
Even though a method may return data asynchronously, the result will not be
updated until the page is refreshed.
Topics
• Overview, page 12
• Monitoring Management Console, page 20
• Using the ConfigureMonitoring Utility, page 27
• Using the Monitoring Archive Utility, page 14
Overview
Installation
The Monitoring Management Console is plug-in is installed by the TIBCO Hawk
4.6 installation process and is accessed via TIBCO Administrator.
If you delete the Application Domain for the plug-in using the Resource
Management> Application Domains dialog, you would need to re-start TIBCO
Administrator.
If you update the plug-in by first removing it and then adding it, log out of TIBCO
Administrator and log back in before using the plug-in.
If using a TIBCO Administrator domain with a database backend, make sure you
set the value for Maximum Connections in the Database Configuration tab of
the DomainUtility to be at least 10. Refer to the TIBCO Runtime Agent
DomainUtility User’s Guide for details.
If a rulebase contains only agent-specific rules, the rulebase is not split into
separate rulesbases and neither is the rulebase name suffixed with any type. If
you want the name of such a rulebase to be assigned a specific type, use the
-Xtype option when creating the monitoring archive file.
The MAR utility will convert any six part data source to a seven part data source
in the input rulebases.
For Example, if the data source in a rulebase is:
COM.TIBCO.ADAPTER.<NAME>.<TIBCO_DEPLOYMENT>.<TIBCO_COMPONENT_INSTA
NCE>,
the MAR utility will convert this data source to the following:
COM.TIBCO.ADAPTER.<NAME>.<DOMAIN>.<TIBCO_DEPLOYMENT>.<TIBCO_COMPON
ENT_INSTANCE>.
If a rulebase contains a rule that has an action that invokes a method from a TIBCO
application which is different from the TIBCO application used in the data source, the
rulebase will not be templatized and an error is generated.To allow other rules in the
rulebase to be templatized, separate the rule that caused the error and run the mar tool
again.
Rulebases that use posted conditions will not work as expected if the posted condition is
posted and referred to by rules with different adapter types in the same rulebase as the
rulebase will be split into multiple rulebases.
Examples:
— mar cvf myMarFile.mar ./
This command creates MAR file myMarFile.mar of type adb and contains
two rulebases adb.hrb and agent.hrb.
— mar cvf myMarFile.mar ./ -Xasis
Example:
— mar uf myMarFile.mar newRB.hrb
This command add the rulebase newRB.hrb to the existing MAR file,
myMarFile.mar.
Example:
— mar xf myMarFile.mar testRB.hrb
This command extracts the rulebase testRB.hrb from the specified MAR
file. Any other rulebase contained in the MAR file is not extracted.
— mar xpf myprop.properties myMarFile.mar testRB.hrb
This command extracts the rulebase testRB.hrb from the specified MAR
file and substitute the variables in the rulebase using the key-value pair
specified in myprop.properties file.
Any other rulebase contained in the MAR file is not extracted.
Following are the contents of a sample properties file used for variable
substitution:
TIBCO_DOMAIN=MyHawkdomain
TIBCO_DEPLOYMENT=myDeployment
TIBCO_COMPONENT_INSTANCE=myComponentInstance
• List a MAR file
To extract a MAR file, use the command
mar t[v]f <marfilename>
Example:
— mar tf myMarFile.mar
The following table describes the input parameters and options for the MAR
utility.
inputfiles
The files or directories, separated by spaces, that are
combined into or extracted from the MAR file.
All directories are processed at the top level only. Only files
with .hrb extension are processed.
description The description for the MAR file. If specify, the description
must be placed within quotes (").
If the d option is specified, you have to provide a
description. In the command, the options d and f must
appear in the same order as the description and MAR file.
The MAR utility recognizes the datatype of any rule in a rulebase whose
datasource name is in the following format:
COM.TIBCO.ADAPTER.<NAME>.<TIBCO_DEPLOYMENT>.<TIBCO_COMPONENT_INSTA
NCE> or
COM.TIBCO.ADAPTER.<NAME>.<DOMAIN>.<TIBCO_DEPLOYMENT>.<TIBCO_COMPON
ENT_INSTANCE>.
The following table lists valid values for some TIBCO applications that you can
use when assigning a type to the MAR file.
This console lists the monitoring applications that have been added to your
domain.
To create a monitoring application you must first create a monitoring archive file
(MAR file). This archive is created using the MAR utility and contains TIBCO
Hawk rulebases that monitor your applications. See Using the Monitoring
Archive Utility, page 14 for details on using the MAR utility.
You can use the same MAR file to create multiple monitoring applications and
deploy them separately onto different machines in your domain.
See TIBCO Administrator Access for Monitoring Management Functionality on
page 12 for the permissions required to access the Monitoring Management
Console.
Click Change MAR File if you want to select a different monitoring archive
file.
Select the Quick Configure checkbox if you want to identify the targets where
the monitoring configuration can be deployed. These targets are identified
using the type of the rulebase (monitoring configuration) contained in the
monitoring archive file. The type is determined by the data source of the
microagents belonging to TIBCO application being monitored. If the Quick
Configure checkbox is selected, the Deploy on Save field is enabled.
Note that you will be able to deploy the monitoring configurations only on
machines running TIBCO Runtime Agent 5.3.
Select the Deploy on Save checkbox to deploy the monitoring configurations
contained in the MAR file on the identified targets.
If Quick Configure was not selected when adding the monitoring application,
the targets have to be manually added using the Add Target. See Adding
Targets for more information.
4. Select one or more targets and click Deploy.
If the monitoring configuration is successfully deployed, the Status changes
from Deployable to Deployed (loaded).
If the target application is not running, the status is changed to Deployed (Not
Loaded). When the target application starts, the status changes from
Deployed (Not Loaded) to Deployed (Loaded).
For a deployed monitoring configuration, if the TIBCO Hawk agent on the
target machine stops running, the status changes to Deployed (Unknown).
In order to successfully deploy a monitoring configuration, the TIBCO Hawk
Agent on the target machine must be running.
5. Click OK.
Variable Substitution
The following variables, if used, will be substituted when the monitoring
configuration is deployed:
• TIBCO_DOMAIN
• TIBCO_DEPLOYMENT
• TIBCO_COMPONENT_INSTANCE
• TIBCO_COMPONENT_TYPE
• TIBCO_DOMAIN_HOME
• TIBCO_COMPONENT_INSTANCE_TRACE_FILE
• Retrieve all potential targets for all monitoring configurations within the
specified monitoring application.
The -getTargets command retrieves all potential targets for a given
monitoring application in the TIBCO Administrator domain. An XML file
containing the targets is created in the current directory. The name of the XML
file has the format <MAR_file_name>-targets.xml, where <MAR_file_name>
is the MAR file for which the targets are retrieved.
Example: ConfigureMonitoring.exe -getTargets -monitoringAppName
myMarFile -domain myHawkDomain -user admin -pw adminpw
You can edit the XML file created by the -getTargets options to delete a target,
effectively choosing to not deploy the monitoring configuration on that target.
The following table describes the input parameters for the ConfigureMonitoring
utility.
Input Description
-domain The TIBCO Administrator domain name.
-mar The MAR file name. If the MAR file is not located in the
current directory, specify the complete path name.
Input Description
-targets The file containing targets for a MAR file.
-cred The credential file containing user credentials (user and pw)
specified as properties. The password can be specified either
in plain text or obfuscated form.
Index
A M
Agent tab 8 monitoring application
Alerts creating 20
icons 6 deploying 23
suspending 6 updating 22
All Alerts Monitoring Archive Utility 14
alert details 5 commands 15
viewing alerts 4 input parameters and options 17
monitoring configuration
adding targets to 24
Monitoring Management
C about 12
installation considerations 12
ConfigureMonitoring Utility 27
input parameters 28
customer support viii
Q
Quick Configure 21
D
Deploy on Save 21
S
support, contacting viii
H
Hawk Console
about 2 T
installation considerations 2
Hawk microagent methods technical support viii
invoking 9
list 8