munin-node.conf.j2 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. #
  6. # Example config-file for munin-node
  7. #
  8. log_level 4
  9. log_file /var/log/munin/munin-node.log
  10. pid_file /var/run/munin/munin-node.pid
  11. background 1
  12. setsid 1
  13. user root
  14. group root
  15. # Regexps for files to ignore
  16. {% if ansible_lsb.codename != 'lenny' and ansible_lsb.codename != 'squeeze' %}
  17. ignore_file [\#~]$
  18. {% endif %}
  19. ignore_file DEADJOE$
  20. ignore_file \.bak$
  21. ignore_file %$
  22. ignore_file \.dpkg-(tmp|new|old|dist)$
  23. ignore_file \.rpm(save|new)$
  24. ignore_file \.pod$
  25. # Set this if the client doesn't report the correct hostname when
  26. # telnetting to localhost, port 4949
  27. #
  28. #host_name localhost.localdomain
  29. host_name {{ ansible_fqdn }}
  30. # A list of addresses that are allowed to connect. This must be a
  31. # regular expression, since Net::Server does not understand CIDR-style
  32. # network notation unless the perl module Net::CIDR is installed. You
  33. # may repeat the allow line as many times as you'd like
  34. allow ^127\.0\.0\.1$
  35. allow ^::1$
  36. # If you have installed the Net::CIDR perl module, you can use one or more
  37. # cidr_allow and cidr_deny address/mask patterns. A connecting client must
  38. # match any cidr_allow, and not match any cidr_deny. Note that a netmask
  39. # *must* be provided, even if it's /32
  40. #
  41. # Example:
  42. #
  43. # cidr_allow 127.0.0.1/32
  44. # cidr_allow 192.0.2.0/24
  45. # cidr_deny 192.0.2.42/32
  46. {% if munin_masters is defined %}
  47. {% for master in munin_masters %}
  48. cidr_allow {{ master }}
  49. {% endfor %}
  50. {% endif %}
  51. # Which address to bind to;
  52. host *
  53. # host 127.0.0.1
  54. # And which port
  55. port 4949
  56. {% if munin_node_timeout is defined %}
  57. # Timeout
  58. timeout = {{ munin_node_timeout }}
  59. {% endif %}