2017-01-30 14:23:36 +00:00
|
|
|
# Send respondd request to update information
|
2017-01-29 17:30:08 +00:00
|
|
|
[respondd]
|
|
|
|
enable = true
|
2017-01-30 14:23:36 +00:00
|
|
|
# how oftern request per multicast
|
2017-01-29 17:30:08 +00:00
|
|
|
collect_interval = "1m"
|
2017-01-30 14:23:36 +00:00
|
|
|
# on which interface
|
|
|
|
interface = "eth0"
|
2017-01-29 17:30:08 +00:00
|
|
|
|
2017-01-29 19:06:56 +00:00
|
|
|
|
2017-03-19 10:03:38 +00: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 17:30:08 +00:00
|
|
|
[webserver]
|
|
|
|
enable = false
|
2017-01-29 19:06:56 +00:00
|
|
|
bind = "127.0.0.1:8080"
|
2017-03-05 19:56:41 +00:00
|
|
|
webroot = "/var/www/html/meshviewer"
|
2017-01-29 17:30:08 +00:00
|
|
|
|
2017-01-29 19:06:56 +00:00
|
|
|
|
2017-01-29 17:30:08 +00:00
|
|
|
[nodes]
|
|
|
|
enable = true
|
2017-01-30 14:23:36 +00: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
|
2017-01-29 17:30:08 +00:00
|
|
|
nodes_version = 2
|
2017-01-30 14:23:36 +00:00
|
|
|
# path where to store nodes.json
|
2017-01-29 19:40:46 +00:00
|
|
|
nodes_path = "/var/www/html/meshviewer/data/nodes.json"
|
2017-01-30 14:23:36 +00:00
|
|
|
# path where to store graph.json
|
2017-01-29 19:06:56 +00:00
|
|
|
graph_path = "/var/www/html/meshviewer/data/graph.json"
|
2017-01-30 14:23:36 +00:00
|
|
|
|
|
|
|
# state-version of nodes.json to store cached data,
|
|
|
|
# these is the directly collected respondd data
|
2017-01-29 19:40:46 +00:00
|
|
|
state_path = "/var/lib/collector/state.json"
|
2017-01-29 17:30:08 +00:00
|
|
|
|
|
|
|
# Export nodes and graph periodically
|
|
|
|
save_interval = "5s"
|
|
|
|
|
2017-01-29 20:04:10 +00:00
|
|
|
# Set node to offline if not seen within this period
|
|
|
|
offline_after = "10m"
|
|
|
|
|
2017-01-29 17:30:08 +00:00
|
|
|
# Prune offline nodes after a time of inactivity
|
|
|
|
prune_after = "7d"
|
|
|
|
|
|
|
|
|
2017-01-30 14:23:36 +00: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-01-29 17:30:08 +00:00
|
|
|
[influxdb]
|
|
|
|
enable = false
|
|
|
|
address = "http://localhost:8086"
|
|
|
|
database = "ffhb"
|
|
|
|
username = ""
|
|
|
|
password = ""
|
2017-01-30 14:23:36 +00:00
|
|
|
# cleaning data of measurement node,
|
|
|
|
# which are older than 7d
|
|
|
|
delete_after = "7d"
|
|
|
|
# how often run the cleaning
|
|
|
|
delete_interval = "1h"
|