mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-31 01:24:19 +02:00
Fix nrpe command definition.
Refs ##6225
This commit is contained in:
parent
ec7d9b0f3d
commit
60b772334d
@ -1981,10 +1981,9 @@ Name | Description
|
|||||||
nrpe_address | **Optional.** The host's address. Defaults to "$address$".
|
nrpe_address | **Optional.** The host's address. Defaults to "$address$".
|
||||||
nrpe_port | **Optional.** The NRPE port. Defaults to 5668.
|
nrpe_port | **Optional.** The NRPE port. Defaults to 5668.
|
||||||
nrpe_command | **Optional.** The command that should be executed.
|
nrpe_command | **Optional.** The command that should be executed.
|
||||||
nrpe_no_ssl | **Optional.** Whether to disable SSL or not.
|
nrpe_no_ssl | **Optional.** Whether to disable SSL or not. Defaults to `false`.
|
||||||
nrpe_timeout_unknown | **Optional.** Whether to set timeouts to unknown instead of critical state.
|
nrpe_timeout_unknown | **Optional.** Whether to set timeouts to unknown instead of critical state. Defaults to `false`.
|
||||||
nrpe_timeout | **Optional.** The timeout in seconds.
|
nrpe_timeout | **Optional.** The timeout in seconds.
|
||||||
nrpe_arguments | **Optional.** Optional nrpe arguments (must be enabled on the NRPE client).
|
|
||||||
|
|
||||||
#### <a id="plugin-check-command-apt"></a> apt
|
#### <a id="plugin-check-command-apt"></a> apt
|
||||||
|
|
||||||
|
@ -353,30 +353,27 @@ object CheckCommand "by_ssh" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
object CheckCommand "nrpe" {
|
object CheckCommand "nrpe" {
|
||||||
import "plugin-check-command"
|
import "plugin-check-command"
|
||||||
|
|
||||||
command = PluginDir + "/check_nrpe"
|
command = PluginDir + "/check_nrpe"
|
||||||
|
|
||||||
arguments = {
|
arguments = {
|
||||||
"-H" = "$nrpe_address$"
|
"-H" = "$nrpe_address$"
|
||||||
"-p" = "$nrpe_port$"
|
"-p" = "$nrpe_port$"
|
||||||
"-c" = "$nrpe_command$"
|
"-c" = "$nrpe_command$"
|
||||||
"-n" = {
|
"-n" = {
|
||||||
set_if = "$nrpe_no_ssl$"
|
set_if = "$nrpe_no_ssl$"
|
||||||
description = "Do not use SSL."
|
description = "Do not use SSL."
|
||||||
}
|
|
||||||
"-u" = {
|
|
||||||
set_if = "$nrpe_timeout_unknown$"
|
|
||||||
description = "Make socket timeouts return an UNKNOWN state instead of CRITICAL"
|
|
||||||
}
|
|
||||||
"-t" = "$nrpe_timeout$"
|
|
||||||
"-a" = {
|
|
||||||
value = "$nrpe_arguments$"
|
|
||||||
description = "Optional arguments that should be passed to the nrpe command."
|
|
||||||
order = -1
|
|
||||||
}
|
}
|
||||||
}
|
"-u" = {
|
||||||
|
set_if = "$nrpe_timeout_unknown$"
|
||||||
|
description = "Make socket timeouts return an UNKNOWN state instead of CRITICAL"
|
||||||
|
}
|
||||||
|
"-t" = "$nrpe_timeout$"
|
||||||
|
}
|
||||||
|
|
||||||
vars.nrpe_address = "$address$"
|
vars.nrpe_address = "$address$"
|
||||||
|
vars.nrpe_no_ssl = false
|
||||||
|
vars.nrpe_timeout_unknown = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user