Sha256: a71be206bcac47b74d5cdd50b4ab97cdb6ed11f6b87e5172c566b17da558ac6c

Contents?: true

Size: 910 Bytes

Versions: 37

Compression:

Stored size: 910 Bytes

Contents

<% capacity_types.each do |cap_type, cap_values| -%>
define command {
        command_name  cs-nagios_check-capacity_<%= cap_values[:method_name] %>
        command_line  <%= bin_path -%>cs-nagios check capacity <%= cap_values[:method_name] %> -w $ARG1$ -c $ARG2$ --config <%= config_file %> --zone $ARG3$
        register      1
}

<% end -%>
<% zones.each do |zone| -%>
  <% capacity_types.each do |cap_type, cap_values| -%>
define service {
        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
}

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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
cloudstack-nagios-0.21.0 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.20.1 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.20.0 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.19.0 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.18.4 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.18.3 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.18.2 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.18.1 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.18.0 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.7 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.6 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.5 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.4 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.3 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.2 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.1 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.17.0 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.16.3 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.16.2 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb
cloudstack-nagios-0.16.1 lib/cloudstack-nagios/templates/cloudstack_capacities.cfg.erb