yanic.conf.tmpl 2.3 KB

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