<% if @ng_template_object == 'contact' -%> define <%= @ng_template_object %>{ name <%= @ng_template_object_name %> service_notification_period <%= @ng_svc_notification_period %> host_notification_period <%= @ng_host_notification_period %> service_notification_options <%= @ng_service_notification_options %> host_notification_options <%= @ng_host_notification_options %> service_notification_commands <%= @ng_service_notification_commands %> host_notification_commands <%= @ng_host_notification_commands %> register <%= @ng_object_register %> } <% elsif @ng_template_object == 'host' -%> <% if @ng_template_object_name == 'generic-host' -%> define <%= @ng_template_object %>{ name <%= @ng_template_object_name %> notifications_enabled <%= @ng_notifications_enabled %> event_handler_enabled <%= @ng_event_handler_enabled %> flap_detection_enabled <%= @ng_flap_detection_enabled %> process_perf_data <%= @ng_process_perf_data %> retain_status_information <%= @ng_retain_status_information %> retain_nonstatus_information <%= @ng_retain_nonstatus_information %> notification_period <%= @ng_notification_period %> notification_options <%= @ng_host_notification_options %> register <%= @ng_object_register %> } <% end -%> <% if @ng_template_object_name == 'linux-server' -%> define <%= @ng_template_object %>{ name <%= @ng_template_object_name %> use <%= @ng_template_object_use %> check_period <%= @ng_check_period %> check_interval <%= @ng_check_interval %> retry_interval <%= @ng_retry_interval %> max_check_attempts <%= @ng_ng_max_check_attempts %> check_command <%= @ng_host_check_command %> notification_period <%= @ng_notification_period %> notification_interval <%= @ng_notification_interval %> notification_options <%= @ng_notification_options %> contact_groups <%= @ng_contact_groups %> hostgroups linux-servers register <%= @ng_object_register %> } <% end -%> <% if @ng_template_object_name == 'windows-server' -%> define <%= @ng_template_object %>{ name <%= @ng_template_object_name %> use <%= @ng_template_object_use %> check_period <%= @ng_check_period %> check_interval <%= @ng_check_interval %> retry_interval <%= @ng_retry_interval %> max_check_attempts <%= @ng_max_check_attempts %> check_command <%= @ng_host_check_command %> notification_period <%= @ng_notification_period %> notification_interval <%= @ng_notification_interval %> notification_options <%= @ng_notification_options %> contact_groups <%= @ng_contact_groups %> hostgroups windows-servers register <%= @ng_object_register %> } <% end -%> <% if @ng_template_object_name == 'generic_printer' -%> define <%= @ng_template_object %>{ name <%= @ng_template_object_name %> use <%= @ng_template_object_use %> check_period <%= @ng_check_period %> check_interval <%= @ng_check_interval %> retry_interval <%= @ng_retry_interval %> max_check_attempts <%= @ng_max_check_attempts %> check_command <%= @ng_host_check_command %> notification_period <%= @ng_notification_period %> notification_interval <%= @ng_notification_interval %> notification_options <%= @ng_notification_options %> contact_groups <%= @ng_contact_groups %> statusmap_image printer.png register <%= @ng_object_register %> } <% end -%> <% if @ng_template_object_name == 'generic_switch' -%> define <%= @ng_template_object %>{ name <%= @ng_template_object_name %> use <%= @ng_template_object_use %> check_period <%= @ng_check_period %> check_interval <%= @ng_check_interval %> retry_interval <%= @ng_retry_interval %> max_check_attempts <%= @ng_max_check_attempts %> check_command <%= @ng_host_check_command %> notification_period <%= @ng_notification_period %> notification_interval <%= @ng_notification_interval %> notification_options <%= @ng_notification_options %> contact_groups <%= @ng_contact_groups %> statusmap_image switch.png register <%= @ng_object_register %> } <% end -%> <% elsif @ng_template_object == 'service' -%> <% if @ng_template_object_name == 'generic-service' -%> define <%= @ng_template_object %>{ name <%= @ng_template_object_name %> active_checks_enabled <%= @ng_active_checks_enabled %> passive_checks_enabled <%= @ng_passive_checks_enabled %> parallelize_check <%= @ng_parallelize_check %> obsess_over_service <%= @ng_obsess_over_service %> check_freshness <%= @ng_check_freshness %> notifications_enabled <%= @ng_notifications_enabled %> event_handler_enabled <%= @ng_event_handler_enabled %> flap_detection_enabled <%= @ng_flap_detection_enabled %> process_perf_data <%= @ng_process_perf_data %> retain_status_information <%= @ng_retain_status_information %> retain_nonstatus_information <%= @ng_retain_nonstatus_information %> is_volatile <%= @ng_is_volatile %> check_period <%= @ng_check_period %> max_check_attempts <%= @ng_max_check_attempts %> check_interval <%= @ng_check_interval %> retry_interval <%= @ng_retry_interval %> contact_groups <%= @ng_contact_groups %> notification_options <%= @ng_service_notification_options %> notification_interval <%= @ng_notification_interval %> notification_period <%= @ng_notification_period %> register <%= @ng_object_register %> } <% end -%> <% if @ng_template_object_name == 'local-service' -%> define <%= @ng_template_object %>{ name <%= @ng_template_object_name %> use <%= @ng_template_object_use %> max_check_attempts <%= @ng_max_check_attempts %> check_interval <%= @ng_check_interval %> retry_interval <%= @ng_retry_interval %> register <%= @ng_object_register %> } <% end -%> <% end -%>