68
Chapter 9
Monitoring Traffic
Configuring Traffic Server to E-mail alarms
Alarm messages are built into Traffic Server, you cannot change them. However, you can write a script file to
execute certain actions when an alarm is signaled. For example, if Traffic Server signals an alarm to indicate
that the logging directory is full, you can write a script file that sends an E-mail to alert someone of the
problem.
Traffic Server provides a sample script file named
example_alarm_bin.sh
. You can modify the file to suit
your needs.
Viewing Statistics from Traffic Line
As an alternative to using Traffic Manager, you can use the Traffic Line command-line interface to view
statistics about Traffic Server performance and web traffic. Traffic Line provides a quick way of viewing
Traffic Server statistics if you do not have a browser installed on your machine. You can examine:
•
Groups of statistics about a node or a cluster (for example, all statistics related to the cache)
•
A single statistic about a node or a cluster (for example, the number of objects served from the cache)
In addition to viewing statistics, you can also configure a Traffic Server from Traffic Line and use batch mode
commands to stop and restart a Traffic Server system. Refer to
Configuring Traffic Server using Traffic Line‚
on page 76
and
Appendix C‚ Traffic Line Commands
.
Viewing groups of statistics
Use Monitor mode in a Traffic Line Interactive session to view groups of statistics (for example, HTTP
statistics that include information about HTTP transactions and speeds).
The statistics displayed in Traffic Line Monitor mode are the same as those displayed in Traffic Manager
Monitor mode.
Starting Monitor mode
You access Monitor mode from a Traffic Line Interactive session.
To start Monitor mode:
1. Telnet into the HP web cache appliance and select Shell Access as described in
Overview of Access
Methods‚ on page 7
.
2. Enter the following command, and then press Return:
traffic_line -i
The
cli->
prompt indicates that you are now in a Traffic Line Interactive session.
3. At the prompt, enter
1
to reach Monitor mode.