Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.36 KB | None | 0 0
  1. # This is the config file for Yanic written in "Tom's Obvious, Minimal Language."
  2. # syntax: https://github.com/toml-lang/toml
  3. # (if you need somethink multiple times, checkout out the [[table]] section)
  4.  
  5. # Send respondd request to update information
  6. [respondd]
  7. enable = true
  8. # Delay startup until a multiple of the period since zero time
  9. synchronize = "1m"
  10. # how often request per multicast
  11. collect_interval = "1m"
  12. # interface that has an IP in your mesh network
  13. interfaces = ["br-fftr","br-fftr_01","br-fftr_02","br-fftr_03","br-fftr_04","br-fftr_05"]
  14. # define a port to listen
  15. # if not set or set to 0 the kernel will use a random free port at its own
  16. #port = 10001
  17.  
  18.  
  19. # A little build-in webserver, which statically serves a directory.
  20. # This is useful for testing purposes or for a little standalone installation.
  21. [webserver]
  22. enable = false
  23. bind = "127.0.0.1:8080"
  24. webroot = "/var/www/meshviewer"
  25.  
  26.  
  27. [nodes]
  28. enable = true
  29. # Cache file
  30. # a json file to cache all data collected directly from respondd
  31. state_path = "/var/lib/yanic/state.json"
  32. # prune data in RAM, cache-file and output json files (i.e. nodes.json)
  33. # that were inactive for longer than
  34. prune_after = "7d"
  35. # Export nodes and graph periodically
  36. save_interval = "5s"
  37. # Set node to offline if not seen within this period
  38. offline_after = "10m"
  39.  
  40.  
  41. ## [[nodes.output.example]]
  42. # Each output format has its own config block and needs to be enabled by adding:
  43. #enable = true
  44. #
  45. # For each output format there can be set different filters
  46. #[nodes.output.example.filter]
  47. #
  48. # Set to false, if you want the json files to contain the owner information
  49. #no_owner = false
  50. #
  51. # List of nodeids of nodes that should be filtered out, so they won't appear in output
  52. #blacklist = ["00112233445566", "1337f0badead"]
  53. #
  54. # set has_location to true if you want to include only nodes that have geo-coordinates set
  55. # (setting this to false has no sensible effect, unless you'd want to hide nodes that have coordinates)
  56. #has_location = true
  57.  
  58. #[nodes.output.example.filter.in_area]
  59. # nodes outside this area are not shown on the map but are still listed as a node without coordinates
  60. #latitude_min = 34.30
  61. #latitude_max = 71.85
  62. #longitude_min = -24.96
  63. #longitude_max = 39.72
  64.  
  65.  
  66. # definition for the new more compressed meshviewer.json
  67. [[nodes.output.meshviewer-ffrgb]]
  68. enable = true
  69. path = "/var/www/meshviewer/data/meshviewer.json"
  70.  
  71. #[nodes.output.meshviewer-ffrgb.filter]
  72. no_owner = false
  73. #blacklist = ["00112233445566", "1337f0badead"]
  74. #has_location = true
  75.  
  76. #[nodes.output.meshviewer-ffrgb.filter.in_area]
  77. #latitude_min = 34.30
  78. #latitude_max = 71.85
  79. #longitude_min = -24.96
  80. #longitude_max = 39.72
  81.  
  82.  
  83. # definition for nodes.json
  84. [[nodes.output.meshviewer]]
  85. enable = false
  86. # The structure version of the output which should be generated (i.e. nodes.json)
  87. # version 1 is accepted by the legacy meshviewer (which is the master branch)
  88. # i.e. https://github.com/ffnord/meshviewer/tree/master
  89. # version 2 is accepted by the new versions of meshviewer (which are in the legacy develop branch or newer)
  90. # i.e. https://github.com/ffnord/meshviewer/tree/dev
  91. # https://github.com/ffrgb/meshviewer/tree/develop
  92. version = 2
  93. # path where to store nodes.json
  94. nodes_path = "/var/www/html/meshviewer/data/nodes.json"
  95. # path where to store graph.json
  96. graph_path = "/var/www/html/meshviewer/data/graph.json"
  97.  
  98. #[nodes.output.meshviewer.filter]
  99. #no_owner = false
  100.  
  101.  
  102. # definition for nodelist.json
  103. [[nodes.output.nodelist]]
  104. enable = true
  105. path = "/var/www/meshviewer/data/nodelist.json"
  106.  
  107. #[nodes.output.nodelist.filter]
  108. no_owner = false
  109.  
  110.  
  111.  
  112. [database]
  113. # this will send delete commands to the database to prune data
  114. # which is older than:
  115. delete_after = "7d"
  116. # how often run the cleaning
  117. delete_interval = "1h"
  118.  
  119. ## [[database.connection.example]]
  120. # Each database-connection has its own config block and needs to be enabled by adding:
  121. #enable = true
  122.  
  123. # Save collected data to InfluxDB.
  124. # There are the following measurments:
  125. # node: store node specific data i.e. clients memory, airtime
  126. # global: store global data, i.e. count of clients and nodes
  127. # firmware: store the count of nodes tagged with firmware
  128. # model: store the count of nodes tagged with hardware model
  129. [[database.connection.influxdb]]
  130. enable = false
  131. address = "http://localhost:8086"
  132. database = "ffhb"
  133. username = ""
  134. password = ""
  135.  
  136. # Tagging of the data (optional)
  137. [database.connection.influxdb.tags]
  138. # Tags used by Yanic would override the tags from this config
  139. # nodeid, hostname, owner, model and firmware are tags which are already used
  140. #tagname1 = "tagvalue 1"
  141. # some usefull e.g.:
  142. #system = "productive"
  143. #site = "ffhb"
  144.  
  145. # Logging
  146. [[database.connection.logging]]
  147. enable = false
  148. path = "/var/log/yanic.log"
  149.  
  150. # Graphite settings
  151. [[database.connection.graphite]]
  152. enable = false
  153. address = "localhost:2003"
  154. # Graphite is replacing every "." in the metric name with a slash "/" and uses
  155. # that for the file system hierarchy it generates. it is recommended to at least
  156. # move the metrics out of the root namespace (that would be the empty prefix).
  157. # If you only intend to run one community and only freifunk on your graphite node
  158. # then the prefix can be set to anything (including the empty string) since you
  159. # probably wont care much about "polluting" the namespace.
  160. prefix = "freifunk"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement