Sha256: 62032d7a7a8c741219bb532f8813f7f5ec12cbb6533c55be07e4a08f61601dbc

Contents?: true

Size: 413 Bytes

Versions: 3

Compression:

Stored size: 413 Bytes

Contents

class NagiosConfig < CloudstackNagios::Base

  desc "hosts", "generate nagios hosts configuration for virtual routers"
  def hosts
  	puts load_template("cloudstack_routers_hosts.cfg.erb").result(routers: routers)
  end

  desc "services", "generate nagios services configuration for virtual routers"
  def services
  	puts load_template("cloudstack_routers_services.cfg.erb").result(routers: routers)
  end

 end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cloudstack-nagios-0.1.3 lib/cloudstack-nagios/commands/nagios_config.rb
cloudstack-nagios-0.1.1 lib/cloudstack-nagios/commands/nagios_config.rb
cloudstack-nagios-0.1.0 lib/cloudstack-nagios/commands/nagios_config.rb