OP#436 update Readme
This commit is contained in:
@@ -55,9 +55,9 @@ class confdroid_nagios::nagios::objects::template_rules (
|
||||
ng_template_object_use => 'generic-host',
|
||||
ng_notification_options => 'd,u,r',
|
||||
}
|
||||
confdroid_nagios::nagios::objects::templates { 'unix-server':
|
||||
confdroid_nagios::nagios::objects::templates { 'generic-switch':
|
||||
ng_template_object => 'host',
|
||||
ng_template_object_name => 'unix-server',
|
||||
ng_template_object_name => 'generic-switch',
|
||||
ng_template_object_use => 'generic-host',
|
||||
ng_notification_options => 'd,u,r',
|
||||
}
|
||||
|
||||
@@ -42,6 +42,23 @@ define <%= @ng_template_object %>{
|
||||
register <%= @ng_object_register %>
|
||||
}
|
||||
<% end -%>
|
||||
<% if @ng_template_object_name == 'unix-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 unix-servers
|
||||
register <%= @ng_object_register %>
|
||||
}
|
||||
<% end -%>
|
||||
<% if @ng_template_object_name == 'windows-server' -%>
|
||||
define <%= @ng_template_object %>{
|
||||
name <%= @ng_template_object_name %>
|
||||
@@ -59,7 +76,7 @@ define <%= @ng_template_object %>{
|
||||
register <%= @ng_object_register %>
|
||||
}
|
||||
<% end -%>
|
||||
<% if @ng_template_object_name == 'generic_printer' -%>
|
||||
<% if @ng_template_object_name == 'generic-printer' -%>
|
||||
define <%= @ng_template_object %>{
|
||||
name <%= @ng_template_object_name %>
|
||||
use <%= @ng_template_object_use %>
|
||||
@@ -76,7 +93,7 @@ define <%= @ng_template_object %>{
|
||||
register <%= @ng_object_register %>
|
||||
}
|
||||
<% end -%>
|
||||
<% if @ng_template_object_name == 'generic_switch' -%>
|
||||
<% if @ng_template_object_name == 'generic-switch' -%>
|
||||
define <%= @ng_template_object %>{
|
||||
name <%= @ng_template_object_name %>
|
||||
use <%= @ng_template_object_use %>
|
||||
|
||||
Reference in New Issue
Block a user