munin.conf.j2 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. # Example configuration file for Munin, generated by 'make build'
  6. # The next three variables specifies where the location of the RRD
  7. # databases, the HTML output, logs and the lock/pid files. They all
  8. # must be writable by the user running munin-cron. They are all
  9. # defaulted to the values you see here.
  10. #
  11. # dbdir /var/lib/munin
  12. # htmldir /var/cache/munin/www
  13. # logdir /var/log/munin
  14. # rundir /var/run/munin
  15. #
  16. # Where to look for the HTML templates
  17. # tmpldir /etc/munin/templates
  18. # (Exactly one) directory to include all files from.
  19. #
  20. includedir /etc/munin/munin-conf.d
  21. # Make graphs show values per minute instead of per second
  22. #graph_period minute
  23. # Graphics files are normaly generated by munin-graph, no matter if
  24. # the graphs are used or not. You can change this to
  25. # on-demand-graphing by following the instructions in
  26. # http://munin.projects.linpro.no/wiki/CgiHowto
  27. #
  28. #graph_strategy cgi
  29. # munin-cgi-graph is invoked by the web server up to very many times at the
  30. # same time. This is not optimal since it results in high CPU and memory
  31. # consumption to the degree that the system can thrash. Again the default is
  32. # 6. Most likely the optimal number for max_cgi_graph_jobs is the same as
  33. # max_graph_jobs.
  34. #
  35. #munin_cgi_graph_jobs 6
  36. # If the automatic CGI url is wrong for your system override it here:
  37. #
  38. #cgiurl_graph /cgi-bin/munin-cgi-graph
  39. # munin-graph runs in parallel, the number of concurrent processes is
  40. # 6. If you want munin-graph to not be parallel set to 0. If set too
  41. # high it will slow down munin-graph. Some experiments are needed to
  42. # determine how many are optimal on your system. On a multi-core
  43. # system with good SCSI disks the number can probably be quite high.
  44. #
  45. #max_graph_jobs 6
  46. # Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime
  47. # something changes (OK -> WARNING, CRITICAL -> OK, etc)
  48. #contact.someuser.command mail -s "Munin notification" somejuser@fnord.comm
  49. #contact.anotheruser.command mail -s "Munin notification" anotheruser@blibb.comm
  50. #
  51. # For those with Nagios, the following might come in handy. In addition,
  52. # the services must be defined in the Nagios server as well.
  53. #contact.nagios.command /usr/bin/send_nsca nagios.host.comm -c /etc/nsca.conf
  54. # a simple host tree
  55. {% if munin_nodes is defined %}
  56. {% for node in munin_nodes %}
  57. [{{ node.node }}]
  58. {% if node.address is defined %}
  59. address {{ node.address }}
  60. {% else %}
  61. address {{ node.node }}
  62. {% endif %}
  63. use_node_name yes
  64. {% if node.port is defined %}
  65. port {{ node.port }}
  66. {% endif %}
  67. {% endfor %}
  68. {% endif %}
  69. #
  70. # A more complex example of a host tree
  71. #
  72. ## First our "normal" host.
  73. # [fii.foo.com]
  74. # address foo
  75. #
  76. ## Then our other host...
  77. # [fay.foo.com]
  78. # address fay
  79. #
  80. ## Then we want totals...
  81. # [foo.com;Totals] #Force it into the "foo.com"-domain...
  82. # update no # Turn off data-fetching for this "host".
  83. #
  84. # # The graph "load1". We want to see the loads of both machines...
  85. # # "fii=fii.foo.com:load.load" means "label=machine:graph.field"
  86. # load1.graph_title Loads side by side
  87. # load1.graph_order fii=fii.foo.com:load.load fay=fay.foo.com:load.load
  88. #
  89. # # The graph "load2". Now we want them stacked on top of each other.
  90. # load2.graph_title Loads on top of each other
  91. # load2.dummy_field.stack fii=fii.foo.com:load.load fay=fay.foo.com:load.load
  92. # load2.dummy_field.draw AREA # We want area instead the default LINE2.
  93. # load2.dummy_field.label dummy # This is needed. Silly, really.
  94. #
  95. # # The graph "load3". Now we want them summarised into one field
  96. # load3.graph_title Loads summarised
  97. # load3.combined_loads.sum fii.foo.com:load.load fay.foo.com:load.load
  98. # load3.combined_loads.label Combined loads # Must be set, as this is
  99. # # not a dummy field!
  100. #
  101. ## ...and on a side note, I want them listen in another order (default is
  102. ## alphabetically)
  103. #
  104. # # Since [foo.com] would be interpreted as a host in the domain "com", we
  105. # # specify that this is a domain by adding a semicolon.
  106. # [foo.com;]
  107. # node_order Totals fii.foo.com fay.foo.com
  108. #