Captrap Grapher Help

Graph Parameters:

graph

Graph type. Available types are 'per' (data per interval; see 'per' parameter to specify interval), 'mt' (moving total data per interval), and 'mtpred' (predicted moving total data per interval).

default: "per"

item

Item to be graphed ('bytes' or 'packets').

default: "bytes"

per

Graph interval unit (the unit by which data is grouped). Available units are 'year', 'month', 'day', and 'hour'.

default: "month"

start

Graph start time in ISO 8601 combined date format (example: 'start=2009-06-23T15:21:44').

default: "0001-01-01T00:00:00"

end

Graph end time (see 'start' parameter).

default: "9999-01-01T00:00:00"

pred

List of "number:name" pairs for the 'mtpred' graph type. Multiple pairs are separated by a ',' (example: 'bytes=8689718561:last_hour,10038542471:last_day')

default: (undefined)

states

Traffic states ('up', 'down', etc.) for the 'per' and 'mt' graph types. Any alphanumeric name is acceptable, but will not match any data unless the state is defined in the macs table. Multiple states are separated by a ',' (example: 'states=up,down').

default: (undefined)

sum_interval

Summing interval for the 'mt' graph. See also 'sum_unit'.

default: "1"

sum_unit

Summing unit for the 'mt' graph. See also 'sum_interval'. Available units are 'year', 'month', 'day', and 'hour'.

default: "month"

w

Width of the graph image in pixels. The default is controlled by the configuration parameter "default_graph_w".

default: (undefined)

h

Height of the graph image in pixels. The default is controlled by the configuration parameter "default_graph_h".

default: (undefined)

output

Output data format. Use 'png' or 'svg' to make PNG or SVG images, 'gnuplot' to output a set of gnuplot commands, 'text' to output a plaintext table of values, 'csv' to output csv with a header line, or 'csvraw' to output csv without a header.

default: "png"

caps

Comma-separated list of transfer cap sizes in bytes. Horizontal lines will be drawn with colors corresponding to the specified list of states. If you need to specify an unlimited cap, use -1.

default: (undefined)

patterns

Set to 1 to draw graph with patterned bars, or 0 to disable. See the "patterns_default" configuration parameter.

default: (undefined)