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:
Nick Chappell 2014-07-26 19:10:44 -07:00
parent 07e7fb9567
commit 7b51e2d4f2
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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 -%>
}