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).
+### 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>
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$"
+}