-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
41 lines (34 loc) · 2.24 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""This module contains configuration constants for Patrick Mooney's
network-reporter program. Like the rest of network-reporter, this module is
copyright 2017 by Patrick Mooney. It is licensed under the GNU GPL, either
version 3 or, at your option, any later version. See the file LICENSE for
details.
"""
# PING configuration parameters
ping_exec = "/bin/ping" # Put the full path to your PING executable here.
ping_count_flag = "-c %d" # The flag to supply to tell the PING executable how many times to ping the remote host. Add a %d
# after it so the number of attempts can be substituted in.
ping_version_flag = "-V" # What flag do we pass to the PING executable to get its version string from it?
traceroute_exec = "/usr/sbin/traceroute" # Full path to TRACEROUTE executable.
# Who, how often, and how long to ping
ping_target = "google.com" # Which host to ping?
interval_between_pings = 5 # Number of minutes between the beginning of one check and the beginning of the next
number_of_packets = 100 # How many ping packets to send during each check
# "Situation" is the location or other location-like description in which the network test is being run
situation = "Four Mile Flats"
# Locations relative to the project root.
data_location = "data/" # Where are we storing raw data?
reports_location = "reports/" # Reports are kept here, in subfolders organized year/month/
# When the series of tests is run on ping transcripts, each test looks for specific problems in the DATA passed to it
# and, if it finds problems, determines how bad the problem is and assigns a score based on the seriousness of the
# problem. Currently defined problem level scores are:
network_problem_levels = {
0: "no impediments to normal network use",
1: "minor problems, probably only noticeable to gamers",
2: "network is usable, but is slow",
3: "network is barely usable, and even simple tasks require a great deal of user patience",
4: "network is essentially unusable, though it might occasionally be possible to get something done with multiple retries",
5: "network is completely unusable"
}