mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6045 from gunnarbeutner/fix/move-passive-check-command
Move the "passive" check command to command-icinga.conf
This commit is contained in:
commit
4a51096e65
|
@ -132,6 +132,17 @@ Name | Description
|
|||
dummy\_state | **Optional.** The state. Can be one of 0 (ok), 1 (warning), 2 (critical) and 3 (unknown). Defaults to 0.
|
||||
dummy\_text | **Optional.** Plugin output. Defaults to "Check was successful.".
|
||||
|
||||
### passive <a id="itl-check-command-passive"></a>
|
||||
|
||||
Specialised check command object for passive checks which uses the functionality of the "dummy" check command with appropriate default values.
|
||||
|
||||
Custom attributes passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
dummy_state | **Optional.** The state. Can be one of 0 (ok), 1 (warning), 2 (critical) and 3 (unknown). Defaults to 3.
|
||||
dummy_text | **Optional.** Plugin output. Defaults to "No Passive Check Result Received.".
|
||||
|
||||
### random <a id="itl-random"></a>
|
||||
|
||||
Check command for the built-in `random` check. This check returns random states
|
||||
|
@ -923,17 +934,6 @@ ntp_ipv4 | **Optional.** Use IPv4 connection. Defaults to false.
|
|||
ntp_ipv6 | **Optional.** Use IPv6 connection. Defaults to false.
|
||||
|
||||
|
||||
### passive <a id="plugin-check-command-passive"></a>
|
||||
|
||||
Specialised check command object for passive checks executing the `check_dummy` plugin with appropriate default values.
|
||||
|
||||
Custom attributes passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
|
||||
|
||||
Name | Description
|
||||
----------------|--------------
|
||||
dummy_state | **Optional.** The state. Can be one of 0 (ok), 1 (warning), 2 (critical) and 3 (unknown). Defaults to 3.
|
||||
dummy_text | **Optional.** Plugin output. Defaults to "No Passive Check Result Received.".
|
||||
|
||||
### pgsql <a id="plugin-check-command-pgsql"></a>
|
||||
|
||||
The [check_pgsql](https://www.monitoring-plugins.org/doc/man/check_pgsql.html) plugin
|
||||
|
|
|
@ -38,6 +38,13 @@ object CheckCommand "dummy" {
|
|||
vars.dummy_text = "Check was successful."
|
||||
}
|
||||
|
||||
object CheckCommand "passive" {
|
||||
import "dummy"
|
||||
|
||||
vars.dummy_state = 3
|
||||
vars.dummy_text = "No Passive Check Result Received."
|
||||
}
|
||||
|
||||
object CheckCommand "random" {
|
||||
import "random-check-command"
|
||||
}
|
||||
|
|
|
@ -176,13 +176,6 @@ object CheckCommand "fping6" {
|
|||
vars.fping_address = "$address6$"
|
||||
}
|
||||
|
||||
object CheckCommand "passive" {
|
||||
import "dummy"
|
||||
|
||||
vars.dummy_state = 3
|
||||
vars.dummy_text = "No Passive Check Result Received."
|
||||
}
|
||||
|
||||
object CheckCommand "tcp" {
|
||||
import "ipv4-or-ipv6"
|
||||
|
||||
|
|
Loading…
Reference in New Issue