OP#436 update Readme

This commit is contained in:
2026-03-02 15:30:44 +01:00
parent 6228d9af8e
commit 1078aa3d1b
2 changed files with 21 additions and 4 deletions

View File

@@ -55,9 +55,9 @@ class confdroid_nagios::nagios::objects::template_rules (
ng_template_object_use => 'generic-host', ng_template_object_use => 'generic-host',
ng_notification_options => 'd,u,r', 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 => 'host',
ng_template_object_name => 'unix-server', ng_template_object_name => 'generic-switch',
ng_template_object_use => 'generic-host', ng_template_object_use => 'generic-host',
ng_notification_options => 'd,u,r', ng_notification_options => 'd,u,r',
} }

View File

@@ -42,6 +42,23 @@ define <%= @ng_template_object %>{
register <%= @ng_object_register %> register <%= @ng_object_register %>
} }
<% end -%> <% 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' -%> <% if @ng_template_object_name == 'windows-server' -%>
define <%= @ng_template_object %>{ define <%= @ng_template_object %>{
name <%= @ng_template_object_name %> name <%= @ng_template_object_name %>
@@ -59,7 +76,7 @@ define <%= @ng_template_object %>{
register <%= @ng_object_register %> register <%= @ng_object_register %>
} }
<% end -%> <% end -%>
<% if @ng_template_object_name == 'generic_printer' -%> <% if @ng_template_object_name == 'generic-printer' -%>
define <%= @ng_template_object %>{ define <%= @ng_template_object %>{
name <%= @ng_template_object_name %> name <%= @ng_template_object_name %>
use <%= @ng_template_object_use %> use <%= @ng_template_object_use %>
@@ -76,7 +93,7 @@ define <%= @ng_template_object %>{
register <%= @ng_object_register %> register <%= @ng_object_register %>
} }
<% end -%> <% end -%>
<% if @ng_template_object_name == 'generic_switch' -%> <% if @ng_template_object_name == 'generic-switch' -%>
define <%= @ng_template_object %>{ define <%= @ng_template_object %>{
name <%= @ng_template_object_name %> name <%= @ng_template_object_name %>
use <%= @ng_template_object_use %> use <%= @ng_template_object_use %>