Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITL: add all businessprocess module check parameters #9103

Merged
merged 11 commits into from
Apr 4, 2022
5 changes: 5 additions & 0 deletions doc/10-icinga-template-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -2839,6 +2839,11 @@ icingacli_businessprocess_process | **Required.** Business process to mo
icingacli_businessprocess_config | **Optional.** Configuration file containing your business process without file extension.
icingacli_businessprocess_details | **Optional.** Get details for root cause analysis. Defaults to false.
icingacli_businessprocess_statetype | **Optional.** Define which state type to look at, `soft` or `hard`. Overrides the default value inside the businessprocess module, if configured.
icingacli_businessprocess_ackisok | **Optional.** Treat acknowledged hosts/services always as UP/OK.
icingacli_businessprocess_blame | **Optional.** Show problem details as a tree reduced to the nodes which have the same state as the business process
icingacli_businessprocess_colors | **Optional.** Show colored output
icingacli_businessprocess_downtimeisok | **Optional.** Treat hosts/services in downtime always as UP/OK.
icingacli_businessprocess_rootcause | **Optional.** Used in combination with *icingacli_businessprocess_blame*. Only shows the path of the nodes which are responsible for the state of the business process
Al2Klimov marked this conversation as resolved.
Show resolved Hide resolved
Al2Klimov marked this conversation as resolved.
Show resolved Hide resolved

#### Director <a id="plugin-contrib-icingacli-director"></a>

Expand Down
34 changes: 30 additions & 4 deletions itl/plugins-contrib.d/icingacli.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ object CheckCommand "icingacli-businessprocess" {
command += [ "businessprocess", "process", "check" ]

arguments = {
"--ack-is-ok" = {
set_if = "$icingacli_businessprocess_ackisok$"
description = "Treat acknowledged hosts/services always as UP/OK."
}
"--blame" = {
set_if = "$icingacli_businessprocess_blame$"
description = "Show problem details as a tree reduced to the nodes which have the same state as the business process"
}
"--colors" = {
set_if = "$icingacli_businessprocess_colors$"
description = "Show colored output"
}
"--config" = {
value = "$icingacli_businessprocess_config$"
description = "Configuration file containing your business process without file extension"
Expand All @@ -18,20 +30,34 @@ object CheckCommand "icingacli-businessprocess" {
set_if = "$icingacli_businessprocess_details$"
description = "Get details for root cause analysis"
}
"--state-type" = {
value = "$icingacli_businessprocess_statetype$"
description = "Define which state type to look at. Could be either soft or hard, overrides an eventually configured default"
}
"--downtime-is-ok" = {
set_if = "$icingacli_businessprocess_downtimeisok$"
description = "Treat hosts/services in downtime always as UP/OK."
}
Al2Klimov marked this conversation as resolved.
Show resolved Hide resolved
"--process" = {
value = "$icingacli_businessprocess_process$"
description = "Business process to monitor"
skip_key = true
required = true
order = -1
}
"--root-cause" = {
set_if = "$icingacli_businessprocess_rootcause$"
description = "Used in combination with --blame. Only shows the path of the nodes which are responsible for the state of the business process"
}
"--state-type" = {
value = "$icingacli_businessprocess_statetype$"
description = "Define which state type to look at. Could be either soft or hard, overrides an eventually configured default"
}
Al2Klimov marked this conversation as resolved.
Show resolved Hide resolved
Al2Klimov marked this conversation as resolved.
Show resolved Hide resolved
Al2Klimov marked this conversation as resolved.
Show resolved Hide resolved
}

vars.icingacli_businessprocess_ackisok = false
vars.icingacli_businessprocess_blame = false
vars.icingacli_businessprocess_colors = false
vars.icingacli_businessprocess_details = false
vars.icingacli_businessprocess_downtimeisok = false
vars.icingacli_businessprocess_rootcause = false
vars.icingacli_businessprocess_statetype = false
Al2Klimov marked this conversation as resolved.
Show resolved Hide resolved
}

object CheckCommand "icingacli-director" {
Expand Down