class NagiosConfig < CloudstackNagios::Base desc "nagios_config hosts", "generate nagios hosts configuration for virtual routers" def hosts puts load_template("cloudstack_routers_hosts.cfg.erb").result(routers: routers) end desc "nagios_config services", "generate nagios services configuration for virtual routers" def services puts load_template("cloudstack_routers_services.cfg.erb").result(routers: routers) end end