Advertisement
msx

/etc/munin/munin.conf

msx
Sep 17th, 2012
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. /home/msx # cat /etc/munin/munin.conf
  2. # Example configuration file for Munin, generated by 'make build'
  3.  
  4. # The next three variables specifies where the location of the RRD
  5. # databases, the HTML output, logs and the lock/pid files. They all
  6. # must be writable by the user running munin-cron. They are all
  7. # defaulted to the values you see here.
  8. #
  9. #dbdir /var/lib/munin
  10. #htmldir /usr/share/munin/www
  11. htmldir /srv/http/munin
  12. #logdir /var/log/munin
  13. #rundir /run/munin
  14.  
  15. # Where to look for the HTML templates
  16. #
  17. #tmpldir /etc/munin/templates
  18.  
  19. # Where to look for the static www files
  20. #
  21. #staticdir /etc/munin/static
  22.  
  23. # temporary cgi files are here. note that it has to be writable by
  24. # the cgi user (usually nobody or httpd).
  25. #
  26. # cgitmpdir /var/lib/munin/cgi-tmp
  27.  
  28. # (Exactly one) directory to include all files from.
  29. includedir /etc/munin/munin-conf.d
  30.  
  31. # You can choose the time reference for "DERIVE" like graphs, and show
  32. # "per minute", "per hour" values instead of the default "per second"
  33. #
  34. #graph_period second
  35.  
  36. # Graphics files are generated either via cron or by a CGI process.
  37. # See http://munin-monitoring.org/wiki/CgiHowto2 for more
  38. # documentation.
  39. # Since 2.0, munin-graph has been rewritten to use the cgi code.
  40. # It is single threaded *by design* now.
  41. #
  42. #graph_strategy cron
  43.  
  44. # munin-cgi-graph is invoked by the web server up to very many times at the
  45. # same time. This is not optimal since it results in high CPU and memory
  46. # consumption to the degree that the system can thrash. Again the default is
  47. # 6. Most likely the optimal number for max_cgi_graph_jobs is the same as
  48. # max_graph_jobs.
  49. #
  50. #munin_cgi_graph_jobs 6
  51.  
  52. # If the automatic CGI url is wrong for your system override it here:
  53. #
  54. #cgiurl_graph /munin-cgi/munin-cgi-graph
  55.  
  56. # max_size_x and max_size_y are the max size of images in pixel.
  57. # Default is 4000. Do not make it too large otherwise RRD might use all
  58. # RAM to generate the images.
  59. #
  60. #max_size_x 4000
  61. #max_size_y 4000
  62.  
  63. # HTML files are normally generated by munin-html, no matter if the
  64. # files are used or not. You can change this to on-demand generation
  65. # by following the instructions in http://munin-monitoring.org/wiki/CgiHowto2
  66. #
  67. # Notes:
  68. # - moving to CGI for HTML means you cannot have graph generated by cron.
  69. # - cgi html has some bugs, mostly you still have to launch munin-html by hand
  70. #
  71. #html_strategy cron
  72.  
  73. # munin-update runs in parallel.
  74. #
  75. # The default max number of processes is 16, and is probably ok for you.
  76. #
  77. # If set too high, it might hit some process/ram/filedesc limits.
  78. # If set too low, munin-update might take more than 5 min.
  79. #
  80. # If you want munin-update to not be parallel set it to 0.
  81. #
  82. #max_processes 16
  83.  
  84. # RRD updates are per default, performed directly on the rrd files.
  85. # To reduce IO and enable the use of the rrdcached, uncomment it and set it to
  86. # the location of the socket that rrdcached uses.
  87. #
  88. #rrdcached_socket /var/run/rrdcached.sock
  89.  
  90. # Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime
  91. # something changes (OK -> WARNING, CRITICAL -> OK, etc)
  92. #contact.someuser.command mail -s "Munin notification" somejuser@fnord.comm
  93. #contact.anotheruser.command mail -s "Munin notification" anotheruser@blibb.comm
  94. #
  95. # For those with Nagios, the following might come in handy. In addition,
  96. # the services must be defined in the Nagios server as well.
  97. #contact.nagios.command /usr/bin/send_nsca nagios.host.comm -c /etc/nsca.conf
  98.  
  99. # a simple host tree
  100. [heybeavis]
  101. address 127.0.0.1
  102. use_node_name yes
  103.  
  104. #
  105. # A more complex example of a host tree
  106. #
  107. ## First our "normal" host.
  108. # [fii.foo.com]
  109. # address foo
  110. #
  111. ## Then our other host...
  112. # [fay.foo.com]
  113. # address fay
  114. #
  115. ## Then we want totals...
  116. # [foo.com;Totals] #Force it into the "foo.com"-domain...
  117. # update no # Turn off data-fetching for this "host".
  118. #
  119. # # The graph "load1". We want to see the loads of both machines...
  120. # # "fii=fii.foo.com:load.load" means "label=machine:graph.field"
  121. # load1.graph_title Loads side by side
  122. # load1.graph_order fii=fii.foo.com:load.load fay=fay.foo.com:load.load
  123. #
  124. # # The graph "load2". Now we want them stacked on top of each other.
  125. # load2.graph_title Loads on top of each other
  126. # load2.dummy_field.stack fii=fii.foo.com:load.load fay=fay.foo.com:load.load
  127. # load2.dummy_field.draw AREA # We want area instead the default LINE2.
  128. # load2.dummy_field.label dummy # This is needed. Silly, really.
  129. #
  130. # # The graph "load3". Now we want them summarised into one field
  131. # load3.graph_title Loads summarised
  132. # load3.combined_loads.sum fii.foo.com:load.load fay.foo.com:load.load
  133. # load3.combined_loads.label Combined loads # Must be set, as this is
  134. # # not a dummy field!
  135. #
  136. ## ...and on a side note, I want them listen in another order (default is
  137. ## alphabetically)
  138. #
  139. # # Since [foo.com] would be interpreted as a host in the domain "com", we
  140. # # specify that this is a domain by adding a semicolon.
  141. # [foo.com;]
  142. # node_order Totals fii.foo.com fay.foo.com
  143. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement