added base contacts and additional contacts

This commit is contained in:
Arne Teuke
2017-07-26 12:16:25 +01:00
parent 099828e47a
commit 85ade68820
15 changed files with 328 additions and 216 deletions

View File

@@ -17,7 +17,6 @@ define <%= @ng_template_object %>{
notifications_enabled <%= @ng_notifications_enabled %>
event_handler_enabled <%= @ng_event_handler_enabled %>
flap_detection_enabled <%= @ng_flap_detection_enabled %>
failure_prediction_enabled <%= @ng_failure_prediction_enabled %>
process_perf_data <%= @ng_process_perf_data %>
retain_status_information <%= @ng_retain_status_information %>
retain_nonstatus_information <%= @ng_retain_nonstatus_information %>
@@ -33,7 +32,7 @@ define <%= @ng_template_object %>{
check_interval <%= @ng_check_interval %>
retry_interval <%= @ng_retry_interval %>
max_check_attempts <%= @ng_ng_max_check_attempts %>
check_command <%= @ng_check_command %>
check_command <%= @ng_host_check_command %>
notification_period <%= @ng_notification_period %>
notification_interval <%= @ng_notification_interval %>
notification_options <%= @ng_notification_options %>
@@ -41,7 +40,7 @@ define <%= @ng_template_object %>{
hostgroups linux-servers
register <%= @ng_object_register %>
}
<% end %>
<% end -%>
<% if @ng_template_object_name == 'windows-server' -%>
define <%= @ng_template_object %>{
name <%= @ng_template_object_name %>
@@ -50,7 +49,7 @@ define <%= @ng_template_object %>{
check_interval <%= @ng_check_interval %>
retry_interval <%= @ng_retry_interval %>
max_check_attempts <%= @ng_max_check_attempts %>
check_command <%= @ng_check_command %>
check_command <%= @ng_host_check_command %>
notification_period <%= @ng_notification_period %>
notification_interval <%= @ng_notification_interval %>
notification_options <%= @ng_notification_options %>
@@ -58,7 +57,7 @@ define <%= @ng_template_object %>{
hostgroups windows-servers
register <%= @ng_object_register %>
}
<% end %>
<% end -%>
<% if @ng_template_object_name == 'generic_printer' -%>
define <%= @ng_template_object %>{
name <%= @ng_template_object_name %>
@@ -67,7 +66,7 @@ define <%= @ng_template_object %>{
check_interval <%= @ng_check_interval %>
retry_interval <%= @ng_retry_interval %>
max_check_attempts <%= @ng_max_check_attempts %>
check_command <%= @ng_check_command %>
check_command <%= @ng_host_check_command %>
notification_period <%= @ng_notification_period %>
notification_interval <%= @ng_notification_interval %>
notification_options <%= @ng_notification_options %>
@@ -75,7 +74,7 @@ define <%= @ng_template_object %>{
statusmap_image printer.png
register <%= @ng_object_register %>
}
<% end %>
<% end -%>
<% if @ng_template_object_name == 'generic_switch' -%>
define <%= @ng_template_object %>{
name <%= @ng_template_object_name %>
@@ -84,7 +83,7 @@ define <%= @ng_template_object %>{
check_interval <%= @ng_check_interval %>
retry_interval <%= @ng_retry_interval %>
max_check_attempts <%= @ng_max_check_attempts %>
check_command <%= @ng_check_command %>
check_command <%= @ng_host_check_command %>
notification_period <%= @ng_notification_period %>
notification_interval <%= @ng_notification_interval %>
notification_options <%= @ng_notification_options %>
@@ -92,7 +91,7 @@ define <%= @ng_template_object %>{
statusmap_image switch.png
register <%= @ng_object_register %>
}
<% end %>
<% end -%>
<% elsif @ng_template_object == 'service' -%>
<% if @ng_template_object_name == 'generic-service' -%>
define <%= @ng_template_object %>{
@@ -105,7 +104,6 @@ define <%= @ng_template_object %>{
notifications_enabled <%= @ng_notifications_enabled %>
event_handler_enabled <%= @ng_event_handler_enabled %>
flap_detection_enabled <%= @ng_flap_detection_enabled %>
failure_prediction_enabled <%= @ng_failure_prediction_enabled %>
process_perf_data <%= @ng_process_perf_data %>
retain_status_information <%= @ng_retain_status_information %>
retain_nonstatus_information <%= @ng_retain_nonstatus_information %>