Versions Compared

Key

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

Table of Contents

Traffic Snapshot Reports

Requirements

  • opReports 4 requires that configuration item 'omkd_base_url' in /path/to/omk/conf/opCommon.json be set to the IP address or FQDN of the server for Snapshot Report to function correctly.

    Warning

    Exercise caution while editing /path/to/omk/conf/opCommon.json; if a syntax error is induced all OMK applications will cease to function.


  • opReports requires that a licensed opCharts be installed and that the opCharts EULA be accepted for the Snapshot Report to function correctly.

Introduction

 The 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.

Sample report and how to configure

Number

Configuration Option

Description

1

Title

Page title. Every page can have its own title; If not set, "Page <nr>" is used.

2

Summary Title

This title text is shown before the Summary Table. If not set it's omitted.

3

Table Column Heading

The heading is meant for the first column in the table, which enumerates the Business Services you've selected.
If not set, then "Interfaces" is used.

4

Peak Type

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

5

Capacity Type

The "Capacity" can be the combined sum of capacities across the group, or the capacity of the one "slowest" interface.

6

Graph Order

Graphs for the interfaces of a given Business Service can be grouped horizontally or vertically.

7

Graph

For each interface, the named NMIS graph is generated.

8

Level Color Scheme

Coloring scheme for utilisation levels

Report-Specific Settings

Multiple Pages for Traffic Snapshot Report

...

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

Property

Description

business_services

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

options

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

The options structure supports the following settings:

Per-Page Options Property

Description

title

The title for this report page. Optional; if not present "Page <N>" is used.

summary_title

The summary title is shown above the utilisation summary table.

Optional; if not present "Utilisation Summary" is used.

column_heading

The 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.

graph

The 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.

levels

A 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 Property

Description

description

The displayed label for this level.

threshold

A number. The lowest level with a utilisation figure (strictly) higher than the threshold 'wins'.

The  lowest defined level should have a negative threshold.

color

A 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 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.

Option

Description

peak_type

One 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.

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

...