Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As of version 3.0.2 using the GUI schedule editor is the most convenient method for managing report schedules. The GUI schedule editor is a front-end that handles schedule files, so the  technical details given in the next section remain applicable.

Version 3.14 Traffic Snapshot Reports can be defined in the Gui. When this report type is selected you can add and delete snapshot pages under (Sources)

Using Schedule Files

For ease of automated deployment and scriptability opReports provides access to all job schedule options using schedule files.

...

OptionDescription
peak_typeOne of combinedbusiest_bits or busiest_util. Default is combined.
Combined: The peak utilisation for the interface group is defined as the sum of all involved interfaces' traffic.
Busiest by Bits: The peak utilisation is sourced from the one interface with the highest traffic figure.
Busiest by Utilisation: The peak utilisation is sourced from the one interface with the highest ratio of traffic to configured interface capacity.
capacity_type

One of combined or slowest. Default is combined.
Combined: The overall capacity for the interface group is defined as the sum of all involved interfaces' configured capacity.
Slowest: The overall capacity is defined as the capacity of the slowest interface, ie. the one with the lowest configured capacity.

Report-Specific Settings

...

Traffic Snapshot

...

The Traffic Snapshot report  requires a deep structure to describe each of its multiple pages.

Each page covers the (interface) members of one or more opCharts Business Services; utilisation data is computed and shown for all members of a business service combined, but graphs are presented  for each interface separately.

In a schedule file this structure is known as pages, and it is passed to opreports-cli serialised in dot-notation form.

The pages structure must contain a list of page definitions, each with the following  properties:

PropertyDescription
business_services

A list of business service names that should be shown on this page. Required. Ordering is relevant.

optionsA hash sub-structure with report options that are specific to this one page.

The options structure supports the following settings:

Per-Page Options PropertyDescription
titleThe title for this report page. Optional; if not present "Page <N>" is used.
summary_titleThe summary title is shown above the utilisation summary table.
Optional; if not present "Utilisation Summary" is used.
column_headingThe value of this property is used as table column heading for the business service column in the summary table.
Optional; if not present, "Interfaces" is used.
graphThe name of the NMIS graph to produce for each selected interface. Required.
Note that the "short name" of the graph is to be used, e.g. "autil", not "Interface Utilisation including Availability".
graph_order

The graphs for all members of one business service group will be arranged in the selected order.
Value: either same_row or same_column. Optional; default is same_column, i.e. a vertical arrangement.

levelsA hash sub-structure that describes the desired coloring scheme for this page, based on utilisation level.
Optional; if not present, then the levels from the global configuration option report_summary_levels are used.

Level Color Schemes

The coloring rules must be set separately for each page.
To simplify reuse the schedule editing GUI will let you pick only from existing schemes that are defined in opCommon.nmis: the color level schemes must be attached to the configuration item report_snapshot_levels, and each scheme must have its own key. opReports ships with two example schemes to illustrate this setup.

In both cases (for editing a schedule by hand, or for preparing reusable color schemes in the config), the levels structure must be a deep hash structure, key being the level 'name', each value being a structure with the following properties:

Level PropertyDescription
descriptionThe displayed label for this level.
thresholdA number. The lowest level with a utilisation figure (strictly) higher than the threshold 'wins'.
The  lowest defined level should have a negative threshold.
colorA color name or a "#RRGGBB" HTML-style color specification. This color is used for the cell background of the 'Peak' column.
The color name must be one of the ones that XLSX supports; RGB is more robust.

How levels and peak/capacity types interact

The utilisation summary table contains three columns:

  • the name of the  Business Service for this group
  • the "Peak Utilisation" for the whole group, in bits/second (formatted with suitable unit suffix),
  • and the "Capacity" for the whole group, in bits/second.

The "Peak Utilisation" can be the combined sum of utilisation figures across the group, or the utilisation of one "busiest" interface.
The "Capacity" can be the combined sum of capacities across the group, or the capacity of the one "slowest" interface.

Please note that depending on your configuration choices, the displaed Peak can be higher than Capacity (by some orders of magnitude).
For coloring, the utilisation ratio is computed as peak divided by capacity; this can be above 1.0 (or 100%) as per the caveat above.

The peak and capacity options other than combined are mainly meant for business services that represent identical pairs of interfaces each, one active, one standby; in all other case the caveat above applies.

The Peak Utilisation column is colored according to the levels option: the first level whose threshold is strictly lower than the utilisation ratio is the one setting the color.
E.g. with a ratio 0.0 or 0% (an idle interface group) and level thresholds -1, 25 and 75, the level with threshold -1 will be controlling the color. If the ratio was 0.74 or 74%, the middle level would win, and only if the ratio was above 0.75 or 75% would the last level be involved in coloring.

 

Here is an  complete example Snapshot Report Schedule in JSON form:

...

Reports