##
## Settings for fetch_stat.pl
## Is re-read when changed
##
## + - * / can be used in variables with numeric values
##

## IP of switch, and username/password
SWITCH = 192.168.0.12
USERNAME = admin
PASSWORD = admin

## Summarize these ports, and show these names
PORT 2 = Joxx
PORT 4 = Gandalf
PORT 5 = DM500+Xbox
PORT 6 = WLAN+Xbox
PORT 8 = Shadow
PORT 10 = Brother MFC
PORT 12 = DM7000
#PORT T1 = Trunk (LAG in Dell's vocabulary)

## Poll ports this often, in seconds
## Notice, at 1Gbit/s the 32-bit Byte-counter wraps after ~32 secs
REFRESH_RATE = 30

## Shall active but undefined ports (above) be auto-added to the list?
## Notice, when the settings are reread due to change they will temporary drop
## of the HTML-page and won't be logged/graphed. Sorry about that
## 0 = no, 1 = yes
AUTOADD_ACTIVE_PORTS = 0

## Don't include ports in HTML without link AND no traffic occuring
## Will still be polled, logged and graphed though, so it's just cosmetical
## Allows you to define every port you use, but they're not shown until used
## 0 = no, 1 = yes
HIDE_INACTIVE_PORTS = 0

## File to store cookie, prevents starting a new session when script is restarted
## Too many sessions will hang the switch web interface quickly otherwise
## Leave empty to disable caching (not recommended)
COOKIE_FILE = dell.cookie

## File to write HTML-page to
## Leave empty to disable generation
HTML_FILE = html/dell.html

## File to write unusal things to.
## Leave empty to disable logging
LOG_FILE = dell.log

## File to remember wrapped counters in
## Can be cleared on startup with argument clear_wraps
## Leave empty to disable caching
WRAPS_FILE = dell.wraps

## How much info to output to the shell
## 0 = no unneccessary shell output, 1 = some output, 2 = more output, 3 = full output
VERBOSE = 2

## How often we should poll link- and systeminfo (takes a little while to do)
POLL_LINKINFO_EVERY_NTH_LOOP = 4

## Make bps-values grey when below this threshold, and bold when above
GREY_BELOW_BPS = 2*1024
BOLD_ABOVE_BPS = 1024*1024

## Make pps-values grey when below this threshold, and bold when above
GREY_BELOW_PPS = 5
BOLD_ABOVE_PPS = 512

## In the packetsize-table, grey percent of total packets if below this threshold
GREY_BELOW_PROC = 10

## Prefix for RRD-database-files to log statistics to
## One file per polled port will be created with _<portnr>.rrd added
## Requires RRDs.pm to be installed and in path (part of rrdtool-perl)
## Leave empty to disable
RRD_FILE_PREFIX = dell

## Don't save RRD-data or graph existing data for these ports
## Comma-seperated list, trunks shall be named like T1
#RRD_SKIP_THESE_PORTS = 13,14

## How often the bps- and pps-graphs should be created
## Filenames will be based on HTML_FILE, so HTML_FILE must be set
## Set to 0 or comment out to disable graphing
GRAPH_BPS_EVERY_NTH_LOOP = 4
GRAPH_PPS_EVERY_NTH_LOOP = 8

## Create graphs with this width
## Syntax: GRAPH <number> "name of graph" = seconds width
## No '=' in the name please
## The defaults are optimized for a graph-width of 390 pixels
## to give one PDP per pixel (if I have done the math right :-)
GRAPH 1 "Past 3 hours"	= 11700
GRAPH 2 "Past day"	= 117000
GRAPH 3 "Past week"	= 702000
GRAPH 4 "Past month"	= 2808000
#GRAPH 5 "Past year"	= 33696000

## Which of the defined GRAPHs above that should be used on the overview-page(s)
GRAPH_OVERVIEW = 2

## When placing the graphs in a html-file, should we insert a <br>
## to force the graphs to this many columns?
## If set to zero, no breaks will be inserted and the browser will break when needed
GRAPHS_PER_ROW = 0

## Defines the width and height of the graph-part in generated images
## If less than 390 wide the text below might not fit
## With 390 pixels two graphs per row fits when using a 1024*768 resolution
## Notice, since rrdtool is run with argument '--lazy' changes here and in the GRAPHs
## above may not take effect directly. In that case, delete the .png-files
GRAPH_WIDTH = 390
GRAPH_HEIGHT = 120

## RRD-specific info used _only_ when creating RRD-files
## Change only if you know what you're doing :-)
## If you don't want that 3 hour GRAPH you can comment out RRD_RRA 1 below
## and save yourself a 20kB or so per port. I've used 400 entries
## below even if only 390 of them is used in the above graphs.
##
## Step in seconds, defines the PDP
RRD_STEP = 30
## Log 400 entries; average of 1 PDPs; covers 3 hours
RRD_RRA 1 = RRA:AVERAGE:0.5:1:400
## Log 400 entries; average of 10 PDPs; covers 33 hours
RRD_RRA 2 = RRA:AVERAGE:0.5:10:400
## Log 400 entries; average of 60 PDPs; covers 8 days
RRD_RRA 3 = RRA:AVERAGE:0.5:60:400
## Log 400 entries; average of 240 PDPs; covers 33 days
RRD_RRA 4 = RRA:AVERAGE:0.5:240:400
## Log 400 entries; average of 2880 PDPs; covers 400 days
RRD_RRA 5 = RRA:AVERAGE:0.5:2880:400
