yanic.conf.tmpl 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # Send respondd request to update information
  2. [respondd]
  3. enable = true
  4. # Delay startup until a multiple of the period since zero time
  5. synchronize = "1m"
  6. # how oftern request per multicast
  7. collect_interval = "1m"
  8. # on which interface
  9. interface = "{{iface}}"
  10. # define a port to listen
  11. # (no or 0 would choose at port at his own)
  12. #port = 10001
  13. # A little build-in webserver, which statically serves a directory.
  14. # This is useful for testing purposes or for a little standalone installation.
  15. [webserver]
  16. enable = {{webserver}}
  17. bind = "[{{bind_ip}}]:8080"
  18. webroot = "/srv/yanic/data"
  19. [nodes]
  20. enable = true
  21. # state-version of nodes.json to store cached data,
  22. # these is the directly collected respondd data
  23. state_path = "/srv/yanic/{{site}}.state"
  24. # Export nodes and graph periodically
  25. save_interval = "1m"
  26. # Set node to offline if not seen within this period
  27. offline_after = "10m"
  28. # Prune offline nodes after a time of inactivity
  29. {%- if site == 'legacy' %}
  30. prune_after = "14d"
  31. {%- else %}
  32. prune_after = "30d"
  33. {%- endif %}
  34. [meshviewer]
  35. # structur of nodes.json, which to support
  36. # version 1 is to support legacy meshviewer (which are in master branch)
  37. # i.e. https://github.com/ffnord/meshviewer/tree/master
  38. # version 2 is to support new version of meshviewer (which are in legacy develop branch or newer)
  39. # i.e. https://github.com/ffnord/meshviewer/tree/dev
  40. # https://github.com/ffrgb/meshviewer/tree/develop
  41. version = 2
  42. # path where to store nodes.json
  43. nodes_path = "/srv/yanic/data/{{site}}/nodes.json"
  44. # path where to store graph.json
  45. graph_path = "/srv/yanic/data/{{site}}/graph.json"
  46. [database]
  47. # cleaning data of measurement node,
  48. # which are older than 7d
  49. delete_after = "30d"
  50. # how often run the cleaning
  51. delete_interval = "1d"
  52. # Save collected data to InfluxDB
  53. # there would be the following measurments:
  54. # node: store node spezific data i.e. clients memory, airtime
  55. # global: store global data, i.e. count of clients and nodes
  56. # firmware: store count of nodes tagged with firmware
  57. # model: store count of nodes tagged with hardware model
  58. [[database.connection.influxdb]]
  59. enable = true
  60. address = "{{influxdb.address}}"
  61. database = "{{influxdb.database}}"
  62. username = "{{influxdb.username}}"
  63. password = "{{influxdb.password}}"
  64. # tagging of the data are optional
  65. # be carefull tags by system would overright config
  66. [database.connection.influxdb.tags]
  67. job = "{{site}}"
  68. [[database.connection.logging]]
  69. enable = false
  70. path = "/var/log/yanic.log"
  71. [[database.connection.graphite]]
  72. enable = false
  73. address = "localhost:2003"
  74. prefix = "freifunk"