mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
ITL: Update icingacli_businessprocess CheckCommand
fixes #4826 Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
This commit is contained in:
parent
94aeaa2e5c
commit
da980ac10e
@ -2282,7 +2282,8 @@ This category includes all plugins using the icingacli provided by Icinga Web 2.
|
||||
|
||||
#### <a id="plugin-contrib-icingacli-businessprocess"></a> Business Process
|
||||
|
||||
This subcommand is provided by the [business process module](https://exchange.icinga.com/icinga/Business+Process) and executed as `icingacli-businessprocess`. The module is hosted by the Icinga project on its [project homepage](https://github.com/Icinga/icingaweb2-module-businessprocess).
|
||||
This subcommand is provided by the [business process module](https://exchange.icinga.com/icinga/Business+Process)
|
||||
and executed as `icingacli businessprocess` CLI command.
|
||||
|
||||
Custom attributes passed as [command parameters](3-monitoring-basics.md#command-passing-parameters):
|
||||
|
||||
@ -2290,7 +2291,8 @@ Name | Description
|
||||
------------------------------------------|-----------------------------------------------------------------------------------------
|
||||
icingacli_businessprocess_process | **Required.** Business process to monitor.
|
||||
icingacli_businessprocess_config | **Optional.** Configuration file containing your business process without file extension.
|
||||
icingacli_businessprocess_details | **Optional.** Get details for root cause analyses. Defaults to false.
|
||||
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.
|
||||
|
||||
|
||||
### <a id="plugin-contrib-ipmi"></a> IPMI Devices
|
||||
|
@ -24,7 +24,7 @@ template CheckCommand "icingacli" {
|
||||
object CheckCommand "icingacli-businessprocess" {
|
||||
import "icingacli"
|
||||
|
||||
command += [ "businessprocess", "check", "process" ]
|
||||
command += [ "businessprocess", "process", "check" ]
|
||||
|
||||
arguments = {
|
||||
"--config" = {
|
||||
@ -33,15 +33,21 @@ object CheckCommand "icingacli-businessprocess" {
|
||||
}
|
||||
"--details" = {
|
||||
set_if = "$icingacli_businessprocess_details$"
|
||||
description = "Get details for root cause analyses"
|
||||
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"
|
||||
}
|
||||
"--process" = {
|
||||
value = "$icingacli_businessprocess_process$"
|
||||
description = "Business process to monitor"
|
||||
skip_key = true
|
||||
required = true
|
||||
order = -1
|
||||
}
|
||||
}
|
||||
|
||||
vars.icingacli_businessprocess_details = false
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user