2017-01-30 15:23:36 +01:00
|
|
|
# Send respondd request to update information
|
2017-01-29 18:30:08 +01:00
|
|
|
[respondd]
|
|
|
|
enable = true
|
2017-06-14 09:44:15 +02:00
|
|
|
# Delay startup until a multiple of the period since zero time
|
|
|
|
synchronize = "1m"
|
2017-01-30 15:23:36 +01:00
|
|
|
# how oftern request per multicast
|
2017-01-29 18:30:08 +01:00
|
|
|
collect_interval = "1m"
|
2017-01-30 15:23:36 +01:00
|
|
|
# on which interface
|
|
|
|
interface = "eth0"
|
2017-03-21 00:53:02 +01:00
|
|
|
# define a port to listen
|
|
|
|
# (no or 0 would choose at port at his own)
|
|
|
|
#port = 10001
|
2017-01-29 18:30:08 +01:00
|
|
|
|
2017-01-29 20:06:56 +01:00
|
|
|
|
2017-03-19 11:03:38 +01:00
|
|
|
# A little build-in webserver, which statically serves a directory.
|
|
|
|
# This is useful for testing purposes or for a little standalone installation.
|
2017-01-29 18:30:08 +01:00
|
|
|
[webserver]
|
|
|
|
enable = false
|
2017-01-29 20:06:56 +01:00
|
|
|
bind = "127.0.0.1:8080"
|
2017-03-05 20:56:41 +01:00
|
|
|
webroot = "/var/www/html/meshviewer"
|
2017-01-29 18:30:08 +01:00
|
|
|
|
2017-01-29 20:06:56 +01:00
|
|
|
|
2017-04-10 18:54:12 +02:00
|
|
|
|
2017-01-29 18:30:08 +01:00
|
|
|
[nodes]
|
|
|
|
enable = true
|
2017-01-30 15:23:36 +01:00
|
|
|
# state-version of nodes.json to store cached data,
|
|
|
|
# these is the directly collected respondd data
|
2017-01-29 20:40:46 +01:00
|
|
|
state_path = "/var/lib/collector/state.json"
|
2017-01-29 18:30:08 +01:00
|
|
|
|
|
|
|
# Export nodes and graph periodically
|
|
|
|
save_interval = "5s"
|
|
|
|
|
2017-01-29 21:04:10 +01:00
|
|
|
# Set node to offline if not seen within this period
|
|
|
|
offline_after = "10m"
|
|
|
|
|
2017-01-29 18:30:08 +01:00
|
|
|
# Prune offline nodes after a time of inactivity
|
|
|
|
prune_after = "7d"
|
|
|
|
|
|
|
|
|
2017-05-20 14:46:29 +02:00
|
|
|
[[nodes.output.meshviewer]]
|
|
|
|
enable = true
|
2017-04-10 18:54:12 +02:00
|
|
|
# structur of nodes.json, which to support
|
|
|
|
# version 1 is to support legacy meshviewer (which are in master branch)
|
|
|
|
# i.e. https://github.com/ffnord/meshviewer/tree/master
|
|
|
|
# version 2 is to support new version of meshviewer (which are in legacy develop branch or newer)
|
|
|
|
# i.e. https://github.com/ffnord/meshviewer/tree/dev
|
|
|
|
# https://github.com/ffrgb/meshviewer/tree/develop
|
|
|
|
version = 2
|
|
|
|
# path where to store nodes.json
|
|
|
|
nodes_path = "/var/www/html/meshviewer/data/nodes.json"
|
|
|
|
# path where to store graph.json
|
|
|
|
graph_path = "/var/www/html/meshviewer/data/graph.json"
|
|
|
|
|
2017-05-20 14:46:29 +02:00
|
|
|
[nodes.output.meshviewer.filter]
|
|
|
|
# no_owner = true
|
|
|
|
has_location = true
|
|
|
|
blacklist = ["vpnid"]
|
|
|
|
|
|
|
|
[nodes.output.meshviewer.filter.in_area]
|
|
|
|
latitude_min = 34.30
|
|
|
|
latitude_max = 71.85
|
|
|
|
longitude_min = -24.96
|
|
|
|
longitude_max = 39.72
|
|
|
|
|
|
|
|
[[nodes.output.template]]
|
|
|
|
enable = false
|
|
|
|
template_path = "/var/lib/collector/html-template.tmp"
|
|
|
|
output_path = "/var/www/html/index.html"
|
|
|
|
|
2017-06-03 04:02:13 +02:00
|
|
|
[[nodes.output.nodelist]]
|
|
|
|
enable = true
|
|
|
|
path = "/var/www/html/meshviewer/data/nodelist.json"
|
|
|
|
|
2017-05-20 14:46:29 +02:00
|
|
|
|
2017-04-10 18:54:12 +02:00
|
|
|
[database]
|
|
|
|
# cleaning data of measurement node,
|
|
|
|
# which are older than 7d
|
|
|
|
delete_after = "7d"
|
|
|
|
# how often run the cleaning
|
|
|
|
delete_interval = "1h"
|
|
|
|
|
2017-01-30 15:23:36 +01:00
|
|
|
# Save collected data to InfluxDB
|
|
|
|
# there would be the following measurments:
|
|
|
|
# node: store node spezific data i.e. clients memory, airtime
|
|
|
|
# global: store global data, i.e. count of clients and nodes
|
|
|
|
# firmware: store count of nodes tagged with firmware
|
|
|
|
# model: store count of nodes tagged with hardware model
|
2017-04-10 18:54:12 +02:00
|
|
|
[[database.connection.influxdb]]
|
2017-01-29 18:30:08 +01:00
|
|
|
enable = false
|
|
|
|
address = "http://localhost:8086"
|
|
|
|
database = "ffhb"
|
|
|
|
username = ""
|
|
|
|
password = ""
|
2017-06-01 18:17:32 +02:00
|
|
|
# tagging of the data are optional
|
|
|
|
# be carefull tags by system would overright config
|
|
|
|
[database.connection.influxdb.tags]
|
|
|
|
site = "ffhb01"
|
|
|
|
system = "testing"
|
2017-04-10 18:54:12 +02:00
|
|
|
|
|
|
|
[[database.connection.logging]]
|
|
|
|
enable = false
|
|
|
|
path = "/var/log/yanic.log"
|
2017-06-01 22:52:14 +02:00
|
|
|
|
|
|
|
[[database.connection.graphite]]
|
|
|
|
enable = false
|
|
|
|
address = "localhost:2003"
|
|
|
|
prefix = "freifunk"
|