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-06-14 07:44:15 +00:00
|
|
|
# Delay startup until a multiple of the period since zero time
|
|
|
|
synchronize = "1m"
|
2017-10-31 13:34:01 +00:00
|
|
|
# how often 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
|
2017-10-18 16:22:14 +00:00
|
|
|
interfaces = ["eth0"]
|
2017-03-20 23:53:02 +00:00
|
|
|
# define a port to listen
|
2017-10-31 13:34:01 +00:00
|
|
|
# if not set or set to 0 the kernel will use a random free port at its own
|
2017-03-20 23:53:02 +00:00
|
|
|
#port = 10001
|
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]
|
2017-10-31 13:34:01 +00:00
|
|
|
enable = true
|
|
|
|
# Cache file
|
|
|
|
# a json file to cache all data collected directly from respondd
|
|
|
|
state_path = "/var/lib/yanic/state.json"
|
|
|
|
# prune data in RAM, cache-file and output json files (i.e. nodes.json)
|
|
|
|
# that were inactive for longer than
|
|
|
|
prune_after = "7d"
|
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
|
|
|
|
2017-04-10 16:54:12 +00:00
|
|
|
[meshviewer]
|
2017-10-31 13:34:01 +00:00
|
|
|
# The structure version of the output which should be generated (i.e. nodes.json)
|
|
|
|
# version 1 is accepted by the legacy meshviewer (which is the master branch)
|
|
|
|
# i.e. https://github.com/ffnord/meshviewer/tree/master
|
|
|
|
# version 2 is accepted by the new versions 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
|
2017-04-10 16:54:12 +00:00
|
|
|
# path where to store nodes.json
|
2017-10-31 13:34:01 +00:00
|
|
|
nodes_path = "/var/www/html/meshviewer/data/nodes.json"
|
2017-04-10 16:54:12 +00:00
|
|
|
# path where to store graph.json
|
2017-10-31 13:34:01 +00:00
|
|
|
graph_path = "/var/www/html/meshviewer/data/graph.json"
|
|
|
|
|
2017-04-10 16:54:12 +00:00
|
|
|
|
|
|
|
[database]
|
2017-10-31 13:34:01 +00:00
|
|
|
# this will send delete commands to the database to prune data
|
|
|
|
# which is older than:
|
|
|
|
delete_after = "7d"
|
|
|
|
# how often run the cleaning
|
2017-04-10 16:54:12 +00:00
|
|
|
delete_interval = "1h"
|
|
|
|
|
2017-10-31 13:34:01 +00:00
|
|
|
# Save collected data to InfluxDB.
|
|
|
|
# There are the following measurments:
|
|
|
|
# node: store node specific data i.e. clients memory, airtime
|
|
|
|
# global: store global data, i.e. count of clients and nodes
|
|
|
|
# firmware: store the count of nodes tagged with firmware
|
|
|
|
# model: store the count of nodes tagged with hardware model
|
2017-04-10 16:54:12 +00:00
|
|
|
[[database.connection.influxdb]]
|
2017-01-29 17:30:08 +00:00
|
|
|
enable = false
|
|
|
|
address = "http://localhost:8086"
|
|
|
|
database = "ffhb"
|
|
|
|
username = ""
|
|
|
|
password = ""
|
2017-10-31 13:34:01 +00:00
|
|
|
|
|
|
|
# Tagging of the data (optional)
|
2017-06-01 16:17:32 +00:00
|
|
|
[database.connection.influxdb.tags]
|
2017-10-31 13:34:01 +00:00
|
|
|
# Tags used by Yanic would override the tags from this config
|
|
|
|
# nodeid, hostname, owner, model and firmware are tags which are already used
|
|
|
|
#tagname1 = "tagvalue 1"
|
|
|
|
# some usefull e.g.:
|
|
|
|
#system = "productive"
|
|
|
|
#site = "ffhb"
|
2017-04-10 16:54:12 +00:00
|
|
|
|
2017-10-31 13:34:01 +00:00
|
|
|
# Logging
|
2017-04-10 16:54:12 +00:00
|
|
|
[[database.connection.logging]]
|
|
|
|
enable = false
|
|
|
|
path = "/var/log/yanic.log"
|
2017-06-01 20:52:14 +00:00
|
|
|
|
2017-10-31 13:34:01 +00:00
|
|
|
# Graphite settings
|
2017-06-01 20:52:14 +00:00
|
|
|
[[database.connection.graphite]]
|
|
|
|
enable = false
|
|
|
|
address = "localhost:2003"
|
2017-10-31 13:34:01 +00:00
|
|
|
# Graphite is replacing every "." in the metric name with a slash "/" and uses
|
|
|
|
# that for the file system hierarchy it generates. it is recommended to at least
|
|
|
|
# move the metrics out of the root namespace (that would be the empty prefix).
|
|
|
|
# If you only intend to run one community and only freifunk on your graphite node
|
|
|
|
# then the prefix can be set to anything (including the empty string) since you
|
|
|
|
# probably wont care much about "polluting" the namespace.
|
2017-06-01 20:52:14 +00:00
|
|
|
prefix = "freifunk"
|