Versions Compared

Key

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

...

A job file must consist of one "hash" datastructure, with the following properties:

 

 



PropertyExampleDescription

type

"util"
"wan"
The report type to generate. Required. See the opReports Report Descriptions for a list of available types.
active"true" or "false"Whether this schedule is active or not. Only active schedules can create new reports, inactive schedules are consulted only for pruning of old report data. If active is not specified, then the schedule is inactive.
description"some text"A free-form description of the scheduled job. Optional.
frequency"daily", "weekly", "monthly" or "yearly"Not present for one-off reports.
start"1-14-2015 20:00:00",
"mon 10:30", various others depending on the frequency

The date + time the report collection is to start at. Required.
See the Formats for Report Periods and Frequencies page for details.

end 
The date + time the report collection is to end at. Same format as start.
from13 or any integer between 0 and  24Start of Business Hours reporting. Optional. Default: 0. See the Formats for Report Periods and Frequencies page for details.
to 
End of Business Hours reporting. Optional. Default: 24.
exclude"fri-sun", "sat-mon"Business week selection. Optional, supported in opReports 3.0.8 and newer.
node_intf_list/some/where/some.fileThe file describing the nodes and interfaces to collect. See section below for format.
util_threshold80

The desired interface utilisation threshold value (in percent), default: 80 (percent).

util_threshold_mincount1

The desired minimum number of threshold exceedences for flagging the interface as over-limit, default: 1.

format 


a hash with the keys "html", "csv" and "xlsx", and values true/false or 1/0.
e.g.
{ "html":0, "csv": true, "xlsx": false}
The formats the report should be saved in.
outputdir/some/where/Where the report should be saved. This has to be a full path pointing to a directory.
GUI-scheduled reports will always use one of the configured directories (see  opreports_output_dirs in opCommon.nmis), and it is recommended that you use only these even if editing schedule files by hand.
Every report schedule can use a different output directory.
naming"simple" or "precise"What naming scheme should be used for the output files. Default is "simple". Mainly important if you plan to manually work with saved report files. See the section on Output File Naming below for details.
sources
and (at most) one of group_regexp, node_list, node_regexp,  node_group, node_intf_list or node_intf_type_list
"everything"See How to select Nodes (and Interfaces) for details.
keep_for47How many days to keep an old report instance. If set to zero, the report is not expired. If not set, then the defaults for the report type are applied  (configuration entry "default_report_keep_for").
options

{ "title" : "My Custom ReportTitle" } 


Optional settings. Some are specific to particular report types. See the section on Optional Settings below.
control_nmis

"true" or "false"

Whether NMIS should be "remote controlled" or left in peace. See section on Remote Controlling NMIS below. Only relevant for one-off reports.
nmis_options"mthread=true maxthreads=15"

Options to be given to nmis.pl type=update. Optional, relevant only  if control_nmis is true.

target_audience_group"HQ"If present and a known NMIS group name, then the generated report can be viewed only by users who are members of this group (and the administrator). If not present then report viewing is not limited to particular groups.

...

The Traffic Snapshot report recognizes the following two global options, and numerous report-specific settings. 


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.

...

Frequency

Simple NamingPrecise Naming
anyfirst the report type, then a "_"same as simple
anyn/aif the report schedule selects nodes by group: the group name and a "_"
one-offthe start and end times in ISO8601 format, separated by "_" and followed by a "_"same as simple
daily

'daily_', then the start and end times in the original format, separated by "-",
then a "_", then then the end date's abbreviated month name suffixed with the day of the month,
a "_", then the end date's four-digit year

same as simple
weekly

the abbreviated start date's month name suffixed with the day of month, a "-",
then the same for the end date, a "_", then the four-digit year 

'weekly_', the start and end date/times in the original format

separated by hyphen (e.g. Tue_00-Fri_14_45 after space removal), a "_",
then the end date's abbreviated month suffixed with the day of the month,
then a "_" and finally the end date's  four-digit year

monthlythe abbreviated month name of the end date, a "_",  then the four-digit year

'monthly_', the start and end dates/times in the original format separated
by hyphen (e.g. 4_17_00-30_24_00 after space removal), a "_",
then the end date's abbreviated month name suffixed with the day of the month,
another "_" and finally the end date's four-digit year.

yearly

'yearly_', the start and end dates in the original format separated by hyphen
(e.g. "12_01_14_00-12_24_19_00" after space translation),
a "_", then the end date's abbreviated month name suffixed with the day of the month,
another "_" and finally the end date's four-digit year.

same as simple

 

 

...