]> git.openstreetmap.org Git - chef.git/blob - cookbooks/munin/templates/default/munin-node.conf.erb
Improve PDU monitoring
[chef.git] / cookbooks / munin / templates / default / munin-node.conf.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 # Configure logging
4 log_level 4
5 log_file /var/log/munin/munin-node.log
6 pid_file /var/run/munin/munin-node.pid
7
8 # Run in the background
9 background 1
10 setsid 1
11
12 # Run as root
13 user root
14 group root
15
16 # Regexps for files to ignore
17 ignore_file ~$
18 ignore_file DEADJOE$ 
19 ignore_file \.bak$
20 ignore_file %$
21 ignore_file \.dpkg-(tmp|new|old|dist)$
22 ignore_file \.rpm(save|new)$
23 ignore_file \.pod$
24
25 # Set the hostname
26 host_name <%= node[:hostname] -%>.openstreetmap.org
27
28 # List on port 4949 on all interfaces
29 host *
30 port 4949
31
32 # List the addresses that are allowed to connect
33 allow ^127\.0\.0\.1$
34 <% @servers.each do |server| -%>
35 <% server.interfaces do |interface| -%>
36 allow ^<%= Regexp.quote(interface[:address]) %>$
37 <% end -%>
38 <% if server[:openvpn] -%>
39 allow ^<%= Regexp.quote(server[:openvpn][:address]) %>$
40 <% end -%>
41 <% end -%>
42 <% node[:munin][:allow].each do |address| -%>
43 allow ^<%= Regexp.quote(address) %>$
44 <% end -%>