Sha256: 635d5361079761b44dcfaa347839fde5b35234faceb90eadbe5afd1b5d0b878b

Contents?: true

Size: 829 Bytes

Versions: 11

Compression:

Stored size: 829 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" = "$host.vars.zone$"
        }
}

<% 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

11 entries across 11 versions & 1 rubygems

Version Path
cloudstack-nagios-0.21.0 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.20.1 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.20.0 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.19.0 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.18.4 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.18.3 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.18.2 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.18.1 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.18.0 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.7 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.6 lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb