Sha256: d4455613751970bd178a46829bab54a32f5e813d683978e6ce2311b027b432f7

Contents?: true

Size: 819 Bytes

Versions: 5

Compression:

Stored size: 819 Bytes

Contents

<% capacity_types.each do |cap_type, cap_values| -%>
object CheckCommand "cs-nagios_check-capacity_<%= cap_values[:method_name] %>" {
	import "plugin-check-command"
        command = [ "<%= bin_path -%>cs-nagios", "check", "capacity", "<%= cap_values[:method_name] %>" ] 

	arguments = {
                "-w" = "80"
                "-c" = "90"
                "--config" = "<%= config_file %>"
                "--zone" = "$ARG3$"
        }
}

<% end -%>
<% zones.each do |zone| -%>
  <% capacity_types.each do |cap_type, cap_values| -%>
apply Service "Cloudstack <%= zone['name'] %> <%= cap_values[:name] %>"  {
	import "generic-service-pnp"
        check_command  = "cs-nagios_check-capacity_<%= cap_values[:method_name] -%>"
	assign where host.name in [ "Cloudstack_<%= zone['name'] %>" ]
}

  <% end -%>
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloudstack-nagios-0.17.5 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.4 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.3 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.2 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.1 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb