Added a parameter and default value for the check_command parameter; added it to the service object ERB template.
This commit is contained in:
parent
948b5b68aa
commit
022abb8cdf
2 changed files with 4 additions and 2 deletions
|
@ -16,8 +16,8 @@ define icinga2::object::service (
|
||||||
$host_name = $fqdn,
|
$host_name = $fqdn,
|
||||||
$groups = [],
|
$groups = [],
|
||||||
$vars = {},
|
$vars = {},
|
||||||
|
$check_command = undef,
|
||||||
#Parameters to add:
|
#Parameters to add:
|
||||||
# * check_command
|
|
||||||
# * max_check_attempts
|
# * max_check_attempts
|
||||||
# * check_period
|
# * check_period
|
||||||
# * check_interval
|
# * check_interval
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Parameters to add:
|
// Parameters to add:
|
||||||
// * check_command
|
|
||||||
// * max_check_attempts
|
// * max_check_attempts
|
||||||
// * check_period
|
// * check_period
|
||||||
// * check_interval
|
// * check_interval
|
||||||
|
@ -51,4 +50,7 @@ object Service "<%= @object_servicename %>" {
|
||||||
vars.<%= key %> = "<%= value %>"
|
vars.<%= key %> = "<%= value %>"
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
<%- if @check_command -%>
|
||||||
|
check_command = "<%= @check_command -%>"
|
||||||
|
<%- end -%>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue