Added a max_check_attempts parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters.
This commit is contained in:
parent
07e7fb9567
commit
7b51e2d4f2
2 changed files with 5 additions and 3 deletions
|
@ -16,9 +16,9 @@ define icinga2::object::host (
|
|||
$groups = [],
|
||||
$vars = {},
|
||||
$check_command = undef,
|
||||
$max_check_attempts = undef,
|
||||
|
||||
# Parameters that still need to be included:
|
||||
# max_check_attempts
|
||||
# check_period
|
||||
# check_interval
|
||||
# retry_interval
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
*/
|
||||
|
||||
//Parameters to include:
|
||||
// * max_check_attempts
|
||||
// * check_period
|
||||
// * check_interval
|
||||
// * retry_interval
|
||||
|
@ -54,6 +53,9 @@ object Host "<%= @object_hostname %>" {
|
|||
<%- end -%>
|
||||
<%- end -%>
|
||||
<%- if @check_command -%>
|
||||
check_command = "<%= @check_command -%>"
|
||||
check_command = "<%= @max_check_attempts -%>"
|
||||
<%- end -%>
|
||||
<%- if @check_command -%>
|
||||
max_check_attempts = "<%= @max_check_attempts -%>"
|
||||
<%- end -%>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue