<% end -%>
<% if client[:networking][:roles][:external][:zone] == "ucl" -%>
address <%= client.internal_ipaddress || client.external_ipaddress %>
-<% elsif client[:networking][:roles][:external][:zone] == "ic" -%>
+<% elsif client[:networking][:roles][:external][:zone] == "ams" -%>
address <%= client.internal_ipaddress || client.external_ipaddress %>
<% elsif client[:networking][:roles][:external][:zone] == "bm" -%>
address <%= client.internal_ipaddress || client.external_ipaddress %>
<% end -%>
<% end -%>
<% end -%>
+
+# Configure monitoring for pdu1.ams.openstreetmap.org
+[pdu1.ams.openstreetmap]
+ address 10.0.48.10
+ use_node_name no
+
+# Configure monitoring for pdu1.ams.openstreetmap.org
+[pdu2.ams.openstreetmap]
+ address 10.0.48.10
+ use_node_name no
+
+# Configure compound graphs for ams.openstreetmap.org
+[ams.openstreetmap]
+ update no
+ apcpdu_current.graph_title Load
+ apcpdu_current.graph_args --lower-limit 0
+ apcpdu_current.graph_vlabel Amps
+ apcpdu_current.graph_category power
+ apcpdu_current.current.sum pdu1.ams.openstreetmap:snmp_pdu1.ams.openstreetmap.org_apcpdu_current.current pdu2.ams.openstreetmap:snmp_pdu2.ams.openstreetmap.org_apcpdu_current.current
+ apcpdu_current.current.label Current
+ apcpdu_current.current.min 0
+ apcpdu_power.graph_title Load
+ apcpdu_power.graph_args --base 1000 --lower-limit 0
+ apcpdu_power.graph_vlabel Watts
+ apcpdu_power.graph_category power
+ apcpdu_power.power.sum pdu1.ams.openstreetmap:snmp_pdu1.ams.openstreetmap.org_apcpdu_power.power pdu2.ams.openstreetmap:snmp_pdu2.ams.openstreetmap.org_apcpdu_power.power
+ apcpdu_power.power.label Power
+ apcpdu_power.power.min 0
<% unless @frontends.empty? && @backends.empty? -%>
# Configure compound graphs for www.openstreetmap.org
api_calls_error.graph_title HTTP errors
api_calls_error.graph_vlabel Number of errors per ${graph_period}
api_calls_error.graph_category api
- api_calls_error.graph_order http401 http500 http502 http503 http509
+ api_calls_error.graph_order http401 http422 http500 http502 http503 http509
api_calls_error.http401.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_status.http401", @frontends %>
api_calls_error.http401.label 401 Unauthorized
api_calls_error.http401.warning :0.5
+ api_calls_error.http422.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_status.http422", @frontends %>
+ api_calls_error.http422.label 422 Unprocessable Entity
+ api_calls_error.http422.warning :0.5
api_calls_error.http500.sum <%= Chef::Munin.expand "%%.openstreetmap:api_calls_status.http500", @frontends %>
api_calls_error.http500.label 500 Internal Server Error
api_calls_error.http500.warning :0.5