c8fdc68
###########################################################################
c8fdc68
#                                                                         #
c8fdc68
# Please don't edit this example config file. Create and edit             #
c8fdc68
# file /etc/munin/conf.d/local.conf instead.                              #
c8fdc68
#                                                                         #
c8fdc68
# You must also install munin-nginx or munin-apache sub-package. See      #
c8fdc68
# /usr/share/doc/munin-*/*.conf for example nginx/apache config files     #
c8fdc68
# and installation instructions.                                          #
c8fdc68
#                                                                         #
c8fdc68
###########################################################################
5c2cefb
5c2cefb
# The next three variables specifies where the location of the RRD
5c2cefb
# databases, the HTML output, logs and the lock/pid files.  They all
5c2cefb
# must be writable by the user running munin-cron.  They are all
5c2cefb
# defaulted to the values you see here.
5c2cefb
#
5c2cefb
#dbdir     /var/lib/munin
5c2cefb
#htmldir   /var/www/html/munin
5c2cefb
#logdir    /var/log/munin
5c2cefb
#rundir    /var/run/munin
5c2cefb
5c2cefb
# Where to look for the HTML templates
5c2cefb
#
5c2cefb
#tmpldir   /etc/munin/templates
5c2cefb
5c2cefb
# Where to look for the static www files
5c2cefb
#
5c2cefb
#staticdir /etc/munin/static
5c2cefb
5c2cefb
# Temporary cgi files are here. Note that it has to be writable by the cgi
5c2cefb
# user (usually apache).
5c2cefb
#
5c2cefb
#cgitmpdir /var/lib/munin/cgi-tmp
5c2cefb
5c2cefb
# (Exactly one) directory to include all files from.
5c2cefb
includedir /etc/munin/conf.d
5c2cefb
5c2cefb
# You can choose the time reference for "DERIVE" like graphs, and show
5c2cefb
# "per minute", "per hour" values instead of the default "per second"
5c2cefb
#
5c2cefb
#graph_period second
5c2cefb
5c2cefb
# Graphics files are generated either via cron or by a CGI process.
5c2cefb
# See http://munin-monitoring.org/wiki/CgiHowto2 for more
5c2cefb
# documentation.
5c2cefb
# Since 2.0, munin-graph has been rewritten to use the cgi code.
5c2cefb
# It is single threaded *by design* now.
5c2cefb
#
5c2cefb
#graph_strategy cron
5c2cefb
5c2cefb
# munin-cgi-graph is invoked by the web server up to very many times at the
5c2cefb
# same time.  This is not optimal since it results in high CPU and memory
5c2cefb
# consumption to the degree that the system can thrash.  Again the default is
5c2cefb
# 6.  Most likely the optimal number for max_cgi_graph_jobs is the same as
5c2cefb
# max_graph_jobs.
5c2cefb
#
5c2cefb
#munin_cgi_graph_jobs 6
5c2cefb
5c2cefb
# If the automatic CGI url is wrong for your system override it here:
5c2cefb
#
5c2cefb
#cgiurl_graph /munin-cgi/munin-cgi-graph
5c2cefb
5c2cefb
# max_size_x and max_size_y are the max size of images in pixel.
5c2cefb
# Default is 4000. Do not make it too large otherwise RRD might use all
5c2cefb
# RAM to generate the images.
5c2cefb
#
5c2cefb
#max_size_x 4000
5c2cefb
#max_size_y 4000
5c2cefb
5c2cefb
# HTML files are normally generated by munin-html, no matter if the
5c2cefb
# files are used or not. You can change this to on-demand generation
5c2cefb
# by following the instructions in http://munin-monitoring.org/wiki/CgiHowto2
5c2cefb
#
5c2cefb
# Notes:
5c2cefb
# - moving to CGI for HTML means you cannot have graph generated by cron.
5c2cefb
# - cgi html has some bugs, mostly you still have to launch munin-html by hand
5c2cefb
#
5c2cefb
#html_strategy cron
5c2cefb
5c2cefb
# munin-update runs in parallel.
5c2cefb
#
5c2cefb
# The default max number of processes is 16, and is probably ok for you.
5c2cefb
#
5c2cefb
# If set too high, it might hit some process/ram/filedesc limits.
5c2cefb
# If set too low, munin-update might take more than 5 min.
5c2cefb
#
5c2cefb
# If you want munin-update to not be parallel set it to 0.
5c2cefb
#
5c2cefb
#max_processes 16
5c2cefb
5c2cefb
# RRD updates are per default, performed directly on the rrd files.
5c2cefb
# To reduce IO and enable the use of the rrdcached, uncomment it and set it to
5c2cefb
# the location of the socket that rrdcached uses.
5c2cefb
#
5c2cefb
#rrdcached_socket /run/munin/rrdcached.sock
5c2cefb
5c2cefb
# Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime
5c2cefb
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
c8fdc68
#contact.someuser.command mail -s "Munin ${var:worst}: ${var:group}::${var:host}::${var:plugin}" somejuser@fnord.comm
c8fdc68
#contact.anotheruser.command mail -s "Munin ${var:worst}: ${var:group}::${var:host}::${var:plugin}" anotheruser@blibb.comm
5c2cefb
#
5c2cefb
# For those with Nagios, the following might come in handy. In addition,
5c2cefb
# the services must be defined in the Nagios server as well.
5c2cefb
#contact.nagios.command /usr/bin/send_nsca nagios.host.comm -c /etc/nsca.conf
5c2cefb
5c2cefb
#
5c2cefb
# A simple host tree
5c2cefb
#
5c2cefb
# [localhost]
5c2cefb
#       address 127.0.0.1
5c2cefb
#       use_node_name yes
5c2cefb
5c2cefb
#
5c2cefb
# A more complex example of a host tree
5c2cefb
#
5c2cefb
## First our "normal" host.
5c2cefb
# [fii.foo.com]
5c2cefb
#       address foo
5c2cefb
#
5c2cefb
## Then our other host...
5c2cefb
# [fay.foo.com]
5c2cefb
#       address fay
5c2cefb
#
5c2cefb
## IPv6 host. note that the ip address has to be in brackets
5c2cefb
# [ip6.foo.com]
5c2cefb
#       address [2001::1234:1]
5c2cefb
#
5c2cefb
## Then we want totals...
5c2cefb
# [foo.com;Totals] #Force it into the "foo.com"-domain...
5c2cefb
#       update no   # Turn off data-fetching for this "host".
5c2cefb
#
5c2cefb
#   # The graph "load1". We want to see the loads of both machines...
5c2cefb
#   # "fii=fii.foo.com:load.load" means "label=machine:graph.field"
5c2cefb
#       load1.graph_title Loads side by side
5c2cefb
#       load1.graph_order fii=fii.foo.com:load.load fay=fay.foo.com:load.load
5c2cefb
#
5c2cefb
#   # The graph "load2". Now we want them stacked on top of each other.
5c2cefb
#       load2.graph_title Loads on top of each other
5c2cefb
#       load2.dummy_field.stack fii=fii.foo.com:load.load fay=fay.foo.com:load.load
5c2cefb
#       load2.dummy_field.draw AREA # We want area instead the default LINE2.
5c2cefb
#       load2.dummy_field.label dummy # This is needed. Silly, really.
5c2cefb
#
5c2cefb
#   # The graph "load3". Now we want them summarised into one field
5c2cefb
#       load3.graph_title Loads summarised
5c2cefb
#       load3.combined_loads.sum fii.foo.com:load.load fay.foo.com:load.load
5c2cefb
#       load3.combined_loads.label Combined loads # Must be set, as this is
5c2cefb
#                                                 # not a dummy field!
5c2cefb
#
5c2cefb
## ...and on a side note, I want them listen in another order (default is
5c2cefb
## alphabetically)
5c2cefb
#
5c2cefb
# # Since [foo.com] would be interpreted as a host in the domain "com", we
5c2cefb
# # specify that this is a domain by adding a semicolon.
5c2cefb
# [foo.com;]
5c2cefb
#       node_order Totals fii.foo.com fay.foo.com
5c2cefb
#