Advertisement
Guest User

Untitled

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