cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting Historical Activity graphs from Traffic Manager

Traffic Manager logs activity (hits per minute and data transferred) for Virtual Servers, Pools and Nodes. You can view the logged data on the Activity -> Historical Activity page in the Admin interface. However, sometimes it is usefule to extract these graphs and archive them. The Admin server doesn't provide a facility to this, so this article presents a simple perl script that generates these graphs.

 

Using the Script

Download the script attached to this article and copy it on to one of your Traffic Managers (it must be run from a Traffic Manager host or virtual appliance).  Ensure that the script is executable.

 

Running it with no arguments will produce the help output:

 

Usage: ./getHistoricalActivity.pl --output=image.png [OPTIONS]

Generates a graph of historical activity. If given no
arguments, will default to graphing all virtual servers for 24 hours

Required arguments:
  --output=FILE       File to output image to ('-' for stdout)

Optional arguments:
  --time=HOURS        Number of hours to graph (default 24)
  --width=WIDTH       Width of output graph (default 640)
  --height=HEIGHT     Height of output graph (default 480)
  --allvs             Graph all Virtual Servers (default)
  --allpools          Graph all pools
  --allnodes          Graph all nodes
  --vs=VS1,VS2        Graph a subset of virtual servers
  --pool=POOL1,POOL2  Graph a subset of pools
  --node=NODE1,NODE2  Graph a subset of nodes
  --linear            Graph using a linear axis (default)
  --logarithmic       Graph using a logarithmic axis
  --hits              Graph hits per minute (default)
  --bytes             Graph bytes per second
  --help              Show this help message

 

Running it just the --output argument will generate an image like the following:

foo.png

The line colours and the virtual server names are output to STDOUT:

# ./foo.pl --output=foo.png

Line colours:
00cfff: apache
ffe626: Zeus AFM Integration
9a41d8: Web Site
00d840: SSL Passthrough
ff4ca8: soundex
Version history
Revision #:
2 of 2
Last update:
‎06-24-2019 05:28:AM
Updated by:
 
Labels (1)
Contributors