mirror of https://github.com/Icinga/icinga2.git
Merge pull request #9103 from log1-c/patch-2
ITL: add all businessprocess module check parameters
This commit is contained in:
parent
f749c7556e
commit
44a34cf070
|
@ -2842,6 +2842,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 <a id="plugin-contrib-icingacli-director"></a>
|
||||
|
||||
|
|
|
@ -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" {
|
||||
|
|
Loading…
Reference in New Issue