TIBCO Developers Library - What is Hawk?

Slowdowns and sudden outages are very critical tobetween the external applications and Hawk System
every business nowadays. Businesses cannot affordthat uses RV Messaging to communicate. It is used as
to have any delays in their operations that may causea protocol in instrumenting an application with a
financial losses. Constant system monitoring is neededmanagement interface that allows the application to be
to prevent and predict any possible failures andmonitored and controlled by exposing internal
downtimes. This is why TIBCO developed a softwareapplication methods to the TIBCO Hawk system.
that has the capability to monitor and manage not onlyTIBCO Hawk Agents operate by loading rulebases.
the systems and applications but the network statisticsSo, what are rulebases?
as well.Rulebase refers to a collection of rules that controls
What is TIBCO HAWK?the monitoring conducted by the agents, which can be
TIBCO Hawk is a network monitoring andcreated or modified using the rulebase editor in the
management software for distributed systems andTIBCO HAWK Display. It uses a microagent method
applications in the enterprise. It is designed using theas a data source to create one or more tests. These
concept of an independent smart agent that runs ontests use If/else construct to check the conditions and
each node in the network to monitor local conditions,includes action if the condition evaluates to true. An
so there is no need for a centralized monitoringaction, can be sending an alert or notification
console or frequent pooling across the network thatmessages, execute an OS command, creating post
can consume more bandwidth or cause networkcondition, or invoking another microgent method.
traffic.What are Alert Messages?
One of the advantages of using TIBCO Hawk is that itAlert messages originate from a rulebase that
uses less bandwidth while monitoring every machine inimplements the monitoring policy or logic. When a
the network. It is because TIBCO Hawk distributes thespecified condition occurs, the agent publishes an alert
monitoring load to each machine that has locallymessage to the TIBCO Hawk Display and presents it
installed Hawk agents in order to conserve systemby colors to show the severity of the alert. It uses
resources and network bandwidth. The systemcolors such as red for high alert, orange for medium
administrator has now the capability to monitor thealert, yellow for low alert, cyan if it's recovering, green if
operating system, the application parameters andit's ok and purple for no heartbeat. These colors are
behaviors of each machine in the network using onlydefault to the Hawk Display but it also allows you to
less bandwidth. Another great advantage of TIBCOchange them based on your own preference. You can
Hawk is that, in case of network failure, the Hawkalso suspend an alert message that will be temporarily
agents will continue to perform local tasks becauseneutralized to prevent it from interfering with other
each agent operates independently from the other.monitoring tasks. If ever a condition ceases, these
One of the benefits of using TIBCO Hawk is that italerts will be cleared or removed in the Display.
reduces sudden or unexpected system outages andWhat is a rulebase scheduling?
slowdowns. TIBCO Hawk has this capability toRulebase scheduling allows you to create a schedule
automatically repair failures and slowdowns withinthat defines when a rulebase, rule, test or action is
seconds of detection and it also allows problems to beactive or not. These schedules can be imposed on the
found and fixed before any slowdowns and failuresrulebase to control the monitoring activity and
can occur.performing corrective tasks. You can define and
TIBCO Hawk system architecture.assign a schedule using the TIBCO Hawk Display,
There are two major components that make up thewhich must be saved on a file so that it can be
TIBCO Hawk System: the Agents and the Consoleassigned later on to one or more agents and can be
Applications. Agents reside on each computer in theapplied to any rulebase objects.
network and perform monitoring and managing duties.In creating a schedule, you can also specify inclusion
It uses rulebases as a monitoring policy andand exclusion periods. For example, you can set a
microagents to extract monitoring information and torulebase to be activated only during office hours and
carry-out specified tasks.be deactivated during holidays. For the inclusion period,
The Console Applications, on the other hand, can beyou can use Mondays to Fridays from 8 AM to 5PM
further divided into three subcomponents: the TIBCOand for the exclusion period you can include holidays
Hawk Display that provides the interface to monitorsuch as Christmas and New Year.
and manage agent behavior in your network, theWhat are the Hawk Group operations?
Event Service that records and logs all the activities ofThere are three Hawk Group operations: the Network
the agent, and the bridges to other managementQuery, Network Query with test and Network Action.
systems.These group operations allow you to detect and solve
Features of TIBCO Hawk Displayproblems in the network. If you want to research and
The TIBCO Hawk Display is a local window for all thetest on how to build rules, these Hawk Group
activities in the network, which provides a graphicaloperations can be used as an interactive tool.
user interface used for viewing active agents in theNetwork Query, from the name itself, queries one or
network. It displays container icons that are created formore agents in the network to detect the location
each agent and arranged in clusters. These agentwhere such specified condition exists. It is such a
icons are, by default, clustered according to subnets. Itpowerful feature that allows you to communicate with
also allows you to customize container icons and tomultiple TIBCO Hawk agents at one time. As an
convey added information that can be useful for yourindividual agent, you can ask or query multiple agents in
monitoring. Menus and dialogs are provided for you toyour network.
create, modify and distribute rulebases to any agentThe Network Query with test, on the other hand, is
present in the network. You can also invoke awhere you apply a test based on the results of the
microagent method that allows you to view the resultsnetwork query. You can use these tests to filter the
immediately.result set, but these tests are optional and only one
Features of TIBCO Hawk Event Servicetest per query is allowed.
The TIBCO Hawk Event Service does not only recordLastly, the Network Action specifies an action to be
the activity of TIBCO Hawk agents but it also logs andperformed on any agent in the network but you can
subscribes to all TIBCO Hawk system events such asonly specify an action one at a time.
agent activation and expiration, microagent andBoth the Network query and Network Action allow
rulebase changes, alerts and clears. The externalyou to combine common and identical tasks which can
applications must be saved on a data file in order forbe executed in a single operation and can be
them to access the logs. If ever there is an expired orperformed on each agent in the network.
non-communicating agent in the network, the EventWhat are the monitoring best practices?
Service provides the use of a user-supplied script toUsing TIBCO Hawk, you can have these practices to
notify the system administrator.achieve an efficient and effective way of monitoring
How does TIBCO Hawk agent operates?your system and your applications.
The Hawk agent uses microagents as an object to- Create a rulebase based on the process existence.
represent and interact with the managed object inThis is to check or test whether there are not enough
your local machine. Then, the agent loads theor too many process instances that are running or you
rulebases as monitoring policies to monitor yourcan use this rulebase to automatically restart a failed
system or your applications. It uses RV Messaging toprocess.
communicate with the microagents, and uses EMS or- Creating a rulebase that monitors the process
RV messaging to communicate with other agents,resource utilization. This is to make sure that the use
Event Service and Hawk Display. It also communicatesof the resources such as the memory and the CPU
using instances of TIBCO Hawk Display but it worksdon't get too big overtime, which might affect the
independently with the Display and other agents.system's performance.Create a rulebase for your
What is the difference between the HawkLogFile or Event Log Monitoring. Through this, you can
Microagent(HMA) and Application Microagents?make or define another rule based on the entries of
HMA or Hawk Microagents are default microagentsthose activities logged on which you'll be able to
residing on your local machine to monitor system'sperform necessary actions.
health and statistics. HMA can be a platform-specific- Checking for the existence of an Application
or platform-independent microagent. It means thatMicroagent also needs to be monitored. This is useful in
every platform has its own specific microagent or ita situation where you want to detect if the application
has microagents that are default to any platform.that you are monitoring is not responding or not
The Application Microagents, on the other hand, arecommunicating with the agents. After studying and
microagents that are specifically created or coded toconfiguring TIBCO Hawk System, you will see that it is
monitor the application statistics. Only those applicationssuch a powerful monitoring tool. It can help system
that use AMI are dynamically discovered by the Hawkadministrator to guarantee and improve software
System and represented by microagents that enablesperformance and availability. With the solutions
those applications to be managed and monitored.provided by TIBCO Hawk, monitoring can now be
What is AMI or Application Management Interface?implemented in the network without worrying much of
Application Management Interface (AMI) is a gatewaythe use of the bandwidth and the network traffic.