mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
Merge pull request #5792 from mcktr/fix/itl-add-check-rpc
ITL: Add check_rpc
This commit is contained in:
commit
6cf41ff038
@ -1100,6 +1100,22 @@ radius_expect | **Optional.** The response string to expect from the server
|
|||||||
radius_retries | **Optional.** The number of times to retry a failed connection.
|
radius_retries | **Optional.** The number of times to retry a failed connection.
|
||||||
radius_timeout | **Optional.** The number of seconds before connection times out (default: 10).
|
radius_timeout | **Optional.** The number of seconds before connection times out (default: 10).
|
||||||
|
|
||||||
|
### rpc <a id="plugin-check-command-rpc"></a>
|
||||||
|
|
||||||
|
The [check_rpc](https://www.monitoring-plugins.org/doc/man/check_rpc.html)
|
||||||
|
plugin tests if a service is registered and running using `rpcinfo -H host -C rpc_command`.
|
||||||
|
|
||||||
|
Custom attributes passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
|
||||||
|
|
||||||
|
Name | Description
|
||||||
|
--- | ---
|
||||||
|
rpc_address | **Optional.** The rpc host address. Defaults to "$address$ if the host `address` attribute is set, "$address6$" otherwise.
|
||||||
|
rpc_command | **Required.** The programm name (or number).
|
||||||
|
rpc_port | **Optional.** The port that should be checked.
|
||||||
|
rpc_version | **Optional.** The version you want to check for (one or more).
|
||||||
|
rpc_udp | **Optional.** Use UDP test. Defaults to false.
|
||||||
|
rpc_tcp | **Optional.** Use TCP test. Defaults to false.
|
||||||
|
rpc_verbose | **Optional.** Show verbose output. Defaults to false.
|
||||||
|
|
||||||
### simap <a id="plugin-check-command-simap"></a>
|
### simap <a id="plugin-check-command-simap"></a>
|
||||||
|
|
||||||
|
@ -3086,3 +3086,44 @@ object CheckCommand "nscp_api" {
|
|||||||
|
|
||||||
vars.nscp_api_host = "$check_address$"
|
vars.nscp_api_host = "$check_address$"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
object CheckCommand "rpc" {
|
||||||
|
import "ipv4-or-ipv6"
|
||||||
|
|
||||||
|
command = [ PluginDir + "/check_rpc" ]
|
||||||
|
|
||||||
|
arguments = {
|
||||||
|
"-H" = {
|
||||||
|
value = "$rpc_address$"
|
||||||
|
description = "RPC host address"
|
||||||
|
required = true
|
||||||
|
}
|
||||||
|
"-C" = {
|
||||||
|
value = "$rpc_command$"
|
||||||
|
description = "Programm name (or number)"
|
||||||
|
required = true
|
||||||
|
}
|
||||||
|
"-p" = {
|
||||||
|
value = "$rpc_port$"
|
||||||
|
description = "RPC port"
|
||||||
|
}
|
||||||
|
"-c" = {
|
||||||
|
value = "$rpc_version$"
|
||||||
|
description = "The version to check"
|
||||||
|
}
|
||||||
|
"-u" = {
|
||||||
|
set_if = "$rpc_udp$"
|
||||||
|
description = "Test UDP"
|
||||||
|
}
|
||||||
|
"-t" = {
|
||||||
|
set_if = "$rpc_tcp$"
|
||||||
|
description = "Test TCP"
|
||||||
|
}
|
||||||
|
"-v" = {
|
||||||
|
set_if = "$rpc_verbose$"
|
||||||
|
description = "Show verbose details"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vars.rpc_address = "$check_address$"
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user