lib/cloudstack-nagios/commands/nagios_config.rb in cloudstack-nagios-0.7.7 vs lib/cloudstack-nagios/commands/nagios_config.rb in cloudstack-nagios-0.7.8

- old
+ new

@@ -27,14 +27,20 @@ desc "router_services", "generate nagios services configuration for system vms" option :template, desc: "path of ERB template to use", default: File.join(File.dirname(__FILE__), '..', 'templates', 'cloudstack_router_services.cfg.erb'), aliases: '-t' + option :if_speed, + desc: 'network interface speed in bits per second', + type: :numeric, + default: 1000000, + aliases: '-s' def router_services service_template = load_template(options[:template]) puts service_template.result( routers: cs_routers, bin_path: bin_path, + if_speed: options[:if_speed], config_file: options[:config], date: date_string ) end \ No newline at end of file