Sha256: a0c64d5872bf6171421887f0d4ed87b91807b54cef57d4be7d08fa3ca47d9780
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudstack-nagios-0.17.0 | lib/cloudstack-nagios/templates/icinga2/cloudstack_capacities.cfg.erb |