diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 8d5ddd2fac3..e1628f4459d 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -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 paths of the nodes which are responsible for the state of the business process. #### Director diff --git a/itl/plugins-contrib.d/icingacli.conf b/itl/plugins-contrib.d/icingacli.conf index 3086aabece9..6914f68b2f7 100644 --- a/itl/plugins-contrib.d/icingacli.conf +++ b/itl/plugins-contrib.d/icingacli.conf @@ -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" @@ -22,6 +34,10 @@ object CheckCommand "icingacli-businessprocess" { 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" + } "--process" = { value = "$icingacli_businessprocess_process$" description = "Business process to monitor" @@ -29,9 +45,18 @@ object CheckCommand "icingacli-businessprocess" { required = true order = -1 } + "--root-cause" = { + set_if = "$icingacli_businessprocess_rootcause$" + description = "Used in combination with --blame. Only shows the paths of the nodes which are responsible for the state of the business process" + } } + 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 } object CheckCommand "icingacli-director" {