Sha256: 536e238676b32722221c15315912c256cacc92db347de685280ff66e5ac0ae2b
Contents?: true
Size: 826 Bytes
Versions: 2
Compression:
Stored size: 826 Bytes
Contents
class NagiosConfig < CloudstackNagios::Base desc "hosts", "generate nagios hosts configuration for virtual routers" option :template, desc: "path of ERB template to use", default: File.join(File.dirname(__FILE__), '..', 'templates', 'cloudstack_routers_hosts.cfg.erb'), aliases: '-t' def hosts host_template = load_template(options[:template]) puts host_template.result(routers: cs_routers) end desc "services", "generate nagios services configuration for virtual routers" option :template, desc: "path of ERB template to use", default: File.join(File.dirname(__FILE__), '..', 'templates', 'cloudstack_routers_services.cfg.erb'), aliases: '-t' def services service_template = load_template(options[:template]) puts service_template.result(routers: cs_routers) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cloudstack-nagios-0.3.1 | lib/cloudstack-nagios/commands/nagios_config.rb |
cloudstack-nagios-0.3.0 | lib/cloudstack-nagios/commands/nagios_config.rb |