Added a parameter and default value for the volatile parameter; added it to the service object ERB template.
This commit is contained in:
parent
273b488c22
commit
40a6e5fb46
2 changed files with 4 additions and 2 deletions
|
@ -30,8 +30,8 @@ define icinga2::object::service (
|
|||
$event_command = undef,
|
||||
#flapping_threshold is defined as a percentage, eg. 10%, 50%, etc.
|
||||
$flapping_threshold = undef,
|
||||
$volatile = undef,
|
||||
#Parameters to add:
|
||||
# * volatile
|
||||
# * notes
|
||||
# * notes_url
|
||||
# * action_url
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
*/
|
||||
|
||||
// Parameters to add:
|
||||
// * volatile
|
||||
// * notes
|
||||
// * notes_url
|
||||
// * action_url
|
||||
|
@ -77,4 +76,7 @@ object Service "<%= @object_servicename %>" {
|
|||
<%- if @flapping_threshold -%>
|
||||
flapping_threshold = "<%= @flapping_threshold -%>"
|
||||
<%- end -%>
|
||||
<%- if @volatile -%>
|
||||
volatile = "<%= @volatile -%>"
|
||||
<%- end -%>
|
||||
}
|
Loading…
Reference in a new issue