- if_eth0.graph_title eth0 traffic
- if_eth0.graph_vlabel bits in (-) / out (+) per ${graph_period}
- if_eth0.graph_category network
- if_eth0.graph_order down up
- if_eth0.down.sum <%= Chef::Munin.expand "%%.openstreetmap.org:if_eth0.down", @frontends %>
- if_eth0.down.label received
- if_eth0.down.cdef down,8,*
- if_eth0.up.sum <%= Chef::Munin.expand "%%.openstreetmap.org:if_eth0.up", @frontends %>
- if_eth0.up.label sent
- if_eth0.up.cdef up,8,*
- if_eth1.graph_title eth1 traffic
- if_eth1.graph_vlabel bits in (-) / out (+) per ${graph_period}
- if_eth1.graph_category network
- if_eth1.graph_order down up
- if_eth1.down.sum <%= Chef::Munin.expand "%%.openstreetmap.org:if_eth1.down", @frontends %>
- if_eth1.down.label received
- if_eth1.down.cdef down,8,*
- if_eth1.up.sum <%= Chef::Munin.expand "%%.openstreetmap.org:if_eth1.up", @frontends %>
- if_eth1.up.label sent
- if_eth1.up.cdef up,8,*
+ network_in.graph_title Inbound network traffic
+ network_in.graph_vlabel bits in per ${graph_period}
+ network_in.graph_category network
+ network_in.graph_order <%= Chef::Munin.expand "%%%name%%%=%%name%%.openstreetmap.org:if_%%interface%%.down", @frontends %>
+ network_in.graph_total total
+ network_in.graph_args --lower-limit 0
+<% @frontends.each do |fe| -%>
+ network_in.<%= fe[:name].tr("-", "_") %>.label <%= fe[:name] %>
+ network_in.<%= fe[:name].tr("-", "_") %>.cdef <%= fe[:name].tr("-", "_") %>,8,*
+ network_in.<%= fe[:name].tr("-", "_") %>.draw AREASTACK
+ network_in.<%= fe[:name].tr("-", "_") %>.min 0
+<% end -%>
+ network_out.graph_title Outbound network traffic
+ network_out.graph_vlabel bits out per ${graph_period}
+ network_out.graph_category network
+ network_out.graph_order <%= Chef::Munin.expand "%%%name%%%=%%name%%.openstreetmap.org:if_%%interface%%.up", @frontends %>
+ network_out.graph_total total
+ network_out.graph_args --lower-limit 0
+<% @frontends.each do |fe| -%>
+ network_out.<%= fe[:name].tr("-", "_") %>.label <%= fe[:name] %>
+ network_out.<%= fe[:name].tr("-", "_") %>.cdef <%= fe[:name].tr("-", "_") %>,8,*
+ network_out.<%= fe[:name].tr("-", "_") %>.draw AREASTACK
+ network_out.<%= fe[:name].tr("-", "_") %>.min 0
+<% end -%>