lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb in cloudstack-nagios-0.10.3 vs lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb in cloudstack-nagios-0.11.0
- old
+ new
@@ -8,10 +8,10 @@
<% end -%>
<% zones.each do |zone| -%>
<% capacity_types.each do |cap_type, cap_values| -%>
define service {
- hostgroup_name Cloudstack
+ host_name Cloudstack_<%= zone['name'] %>
service_description Cloudstack <%= zone['name'] %> <%= cap_values[:name] %>
display_name Cloudstack <%= zone['name'] %> <%= cap_values[:method_name] %>
use Generic-Service,service-pnp
check_command cs-nagios_check-capacity_<%= cap_values[:method_name] -%>!80!90!<%= zone['name'] %>
register 1