dd
This commit is contained in:
parent
dfef55d05f
commit
4a9f6bfb89
3 changed files with 98 additions and 7 deletions
|
@ -31,3 +31,4 @@ munin_hosts:
|
||||||
extra: ["use_node_name yes"]
|
extra: ["use_node_name yes"]
|
||||||
|
|
||||||
munin_cron_job: present
|
munin_cron_job: present
|
||||||
|
munin_dbdir: "/var/lib/munin"
|
||||||
|
|
|
@ -1,5 +1,102 @@
|
||||||
includedir /etc/munin/munin-conf.d
|
includedir /etc/munin/munin-conf.d
|
||||||
|
|
||||||
|
# Example configuration file for Munin, generated by 'make build'
|
||||||
|
|
||||||
|
# The next three variables specifies where the location of the RRD
|
||||||
|
# databases, the HTML output, logs and the lock/pid files. They all
|
||||||
|
# must be writable by the user running munin-cron. They are all
|
||||||
|
# defaulted to the values you see here.
|
||||||
|
#
|
||||||
|
dbdir {{ munin_dbdir }}
|
||||||
|
#htmldir /var/cache/munin/www
|
||||||
|
#logdir /var/log/munin
|
||||||
|
#rundir /var/run/munin
|
||||||
|
|
||||||
|
# Where to look for the HTML templates
|
||||||
|
#
|
||||||
|
#tmpldir /etc/munin/templates
|
||||||
|
|
||||||
|
# Where to look for the static www files
|
||||||
|
#
|
||||||
|
#staticdir /etc/munin/static
|
||||||
|
|
||||||
|
# temporary cgi files are here. note that it has to be writable by
|
||||||
|
# the cgi user (usually nobody or httpd).
|
||||||
|
#
|
||||||
|
# cgitmpdir /var/lib/munin/cgi-tmp
|
||||||
|
|
||||||
|
# (Exactly one) directory to include all files from.
|
||||||
|
includedir /etc/munin/munin-conf.d
|
||||||
|
|
||||||
|
# You can choose the time reference for "DERIVE" like graphs, and show
|
||||||
|
# "per minute", "per hour" values instead of the default "per second"
|
||||||
|
#
|
||||||
|
#graph_period second
|
||||||
|
|
||||||
|
# Graphics files are generated either via cron or by a CGI process.
|
||||||
|
# See http://munin-monitoring.org/wiki/CgiHowto2 for more
|
||||||
|
# documentation.
|
||||||
|
# Since 2.0, munin-graph has been rewritten to use the cgi code.
|
||||||
|
# It is single threaded *by design* now.
|
||||||
|
#
|
||||||
|
#graph_strategy cron
|
||||||
|
|
||||||
|
# munin-cgi-graph is invoked by the web server up to very many times at the
|
||||||
|
# same time. This is not optimal since it results in high CPU and memory
|
||||||
|
# consumption to the degree that the system can thrash. Again the default is
|
||||||
|
# 6. Most likely the optimal number for max_cgi_graph_jobs is the same as
|
||||||
|
# max_graph_jobs.
|
||||||
|
#
|
||||||
|
#munin_cgi_graph_jobs 6
|
||||||
|
|
||||||
|
# If the automatic CGI url is wrong for your system override it here:
|
||||||
|
#
|
||||||
|
#cgiurl_graph /munin-cgi/munin-cgi-graph
|
||||||
|
|
||||||
|
# max_size_x and max_size_y are the max size of images in pixel.
|
||||||
|
# Default is 4000. Do not make it too large otherwise RRD might use all
|
||||||
|
# RAM to generate the images.
|
||||||
|
#
|
||||||
|
#max_size_x 4000
|
||||||
|
#max_size_y 4000
|
||||||
|
|
||||||
|
# HTML files are normally generated by munin-html, no matter if the
|
||||||
|
# files are used or not. You can change this to on-demand generation
|
||||||
|
# by following the instructions in http://munin-monitoring.org/wiki/CgiHowto2
|
||||||
|
#
|
||||||
|
# Notes:
|
||||||
|
# - moving to CGI for HTML means you cannot have graph generated by cron.
|
||||||
|
# - cgi html has some bugs, mostly you still have to launch munin-html by hand
|
||||||
|
#
|
||||||
|
#html_strategy cron
|
||||||
|
|
||||||
|
# munin-update runs in parallel.
|
||||||
|
#
|
||||||
|
# The default max number of processes is 16, and is probably ok for you.
|
||||||
|
#
|
||||||
|
# If set too high, it might hit some process/ram/filedesc limits.
|
||||||
|
# If set too low, munin-update might take more than 5 min.
|
||||||
|
#
|
||||||
|
# If you want munin-update to not be parallel set it to 0.
|
||||||
|
#
|
||||||
|
#max_processes 16
|
||||||
|
|
||||||
|
# RRD updates are per default, performed directly on the rrd files.
|
||||||
|
# To reduce IO and enable the use of the rrdcached, uncomment it and set it to
|
||||||
|
# the location of the socket that rrdcached uses.
|
||||||
|
#
|
||||||
|
#rrdcached_socket /var/run/rrdcached.sock
|
||||||
|
|
||||||
|
# Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime
|
||||||
|
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
|
||||||
|
#contact.someuser.command mail -s "Munin ${var:worst}: ${var:group}::${var:host}::${var:plugin}" somejuser@fnord.comm
|
||||||
|
#contact.anotheruser.command mail -s "Munin ${var:worst}: ${var:group}::${var:host}::${var:plugin}" anotheruser@blibb.comm
|
||||||
|
#
|
||||||
|
# For those with Nagios, the following might come in handy. In addition,
|
||||||
|
# the services must be defined in the Nagios server as well.
|
||||||
|
#contact.nagios.command /usr/bin/send_nsca nagios.host.comm -c /etc/nsca.conf
|
||||||
|
|
||||||
|
|
||||||
# Munin hosts.
|
# Munin hosts.
|
||||||
{% for host in munin_hosts %}
|
{% for host in munin_hosts %}
|
||||||
[{{ host.name }}]
|
[{{ host.name }}]
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
contact.hosting.command mail -s "[MUNIN] Alert ${var:graph_title} for ${var:host}" mailcontact
|
|
||||||
contact.hosting.max_messages 1
|
|
||||||
# if activated mail will be send at each check (every 5mn)
|
|
||||||
# contact.hosting.always_send critical
|
|
||||||
|
|
||||||
# to prevent flooding log file because missing documented contact parameters "no"
|
|
||||||
contact.no.command awk '{ print "[MUNIN] Alert ${var:graph_title} for ${var:host}" }' /dev/null
|
|
Loading…
Reference in a new issue