Sha256: 595ac7d148ef23dcc2eecbed1446852f4c123ec95eb130e47ad25eeef198ee19

Contents?: true

Size: 777 Bytes

Versions: 16

Compression:

Stored size: 777 Bytes

Contents

object CheckCommand "cs-nagios_check-storage_pool" {
	import "plugin-check-command"
  	command = [  "<%= bin_path -%>cs-nagios", "check", "storage_pool" ]
  	arguments = {
                "--pool_name" = "$ARG3$"
                "--over_provisioning" = "ARG4"
                "--config" = "<%= config_file %>"
                "-w" = "80"
                "-c" = "90"
  	}      
}

<% storage_pools.each do |storage_pool| -%>
apply Service "Cloudstack Storage Pool <%= storage_pool['zonename'] %> <%= storage_pool['name'] %>" {
  import "generic-service-pnp"

  check_command = "cs-nagios_check-storage_pool!80!90!<%= storage_pool['name'] %>!<%= over_provisioning %>"
  vars.sla = "24x7"

  assign where "Cloudstack_<%= storage_pool['zonename'] %>" in host.groups
}

<% end -%>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cloudstack-nagios-0.21.0 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.20.1 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.20.0 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.19.0 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.18.4 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.18.3 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.18.2 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.18.1 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.18.0 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.17.7 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.17.6 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.17.5 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.17.4 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.17.3 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.17.2 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb
cloudstack-nagios-0.17.1 lib/cloudstack-nagios/templates/icinga2/cloudstack_storage_pools.cfg.erb