bind_rndc.conf 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # netdata python.d.plugin configuration for bind_rndc
  2. #
  3. # This file is in YaML format. Generally the format is:
  4. #
  5. # name: value
  6. #
  7. # There are 2 sections:
  8. # - global variables
  9. # - one or more JOBS
  10. #
  11. # JOBS allow you to collect values from multiple sources.
  12. # Each source will have its own set of charts.
  13. #
  14. # JOB parameters have to be indented (using spaces only, example below).
  15. # ----------------------------------------------------------------------
  16. # Global Variables
  17. # These variables set the defaults for all JOBs, however each JOB
  18. # may define its own, overriding the defaults.
  19. # update_every sets the default data collection frequency.
  20. # If unset, the python.d.plugin default is used.
  21. # update_every: 1
  22. # priority controls the order of charts at the netdata dashboard.
  23. # Lower numbers move the charts towards the top of the page.
  24. # If unset, the default for python.d.plugin is used.
  25. # priority: 60000
  26. # penalty indicates whether to apply penalty to update_every in case of failures.
  27. # Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes.
  28. # penalty: yes
  29. # autodetection_retry sets the job re-check interval in seconds.
  30. # The job is not deleted if check fails.
  31. # Attempts to start the job are made once every autodetection_retry.
  32. # This feature is disabled by default.
  33. # autodetection_retry: 0
  34. # ----------------------------------------------------------------------
  35. # JOBS (data collection sources)
  36. #
  37. # The default JOBS share the same *name*. JOBS with the same name
  38. # are mutually exclusive. Only one of them will be allowed running at
  39. # any time. This allows autodetection to try several alternatives and
  40. # pick the one that works.
  41. #
  42. # Any number of jobs is supported.
  43. #
  44. # All python.d.plugin JOBS (for all its modules) support a set of
  45. # predefined parameters. These are:
  46. #
  47. # job_name:
  48. # name: myname # the JOB's name as it will appear at the
  49. # # dashboard (by default is the job_name)
  50. # # JOBs sharing a name are mutually exclusive
  51. # update_every: 1 # the JOB's data collection frequency
  52. # priority: 60000 # the JOB's order on the dashboard
  53. # penalty: yes # the JOB's penalty
  54. # autodetection_retry: 0 # the JOB's re-check interval in seconds
  55. #
  56. # Additionally to the above, bind_rndc also supports the following:
  57. #
  58. # named_stats_path: 'path to named.stats' # Default: '/var/log/bind/named.stats'
  59. #------------------------------------------------------------------------------------------------------------------
  60. # Important Information
  61. #
  62. # BIND appends logs at EVERY RUN. It is NOT RECOMMENDED to set update_every below 30 sec.
  63. # It is STRONGLY RECOMMENDED to create a bind-rndc.conf file for logrotate.
  64. #
  65. # To set up your BIND to dump stats do the following:
  66. #
  67. # 1. Add to 'named.conf.options' options {}:
  68. # statistics-file "/var/log/bind/named.stats";
  69. #
  70. # 2. Create bind/ directory in /var/log
  71. # cd /var/log/ && mkdir bind
  72. #
  73. # 3. Change owner of directory to 'bind' user
  74. # chown bind bind/
  75. #
  76. # 4. RELOAD (NOT restart) BIND
  77. # systemctl reload bind9.service
  78. #
  79. # 5. Run as a root 'rndc stats' to dump (BIND will create named.stats in new directory)
  80. #
  81. # To allow Netdata to run 'rndc stats' change '/etc/bind/rndc.key' group to netdata
  82. # chown :netdata rndc.key
  83. #
  84. # Last, BUT NOT least, is to create bind-rndc.conf in logrotate.d/:
  85. #
  86. # /var/log/bind/named.stats {
  87. #
  88. # daily
  89. # rotate 4
  90. # compress
  91. # delaycompress
  92. # create 0644 bind bind
  93. # missingok
  94. # postrotate
  95. # rndc reload > /dev/null
  96. # endscript
  97. # }
  98. #
  99. # To test your logrotate conf file run as root:
  100. # logrotate /etc/logrotate.d/bind-rndc -d (debug dry-run mode)
  101. #
  102. # ----------------------------------------------------------------------