Fix nrpe command definition.

Refs ##6225
This commit is contained in:
Michael Friedrich 2014-05-22 21:06:19 +02:00
parent ec7d9b0f3d
commit 60b772334d
2 changed files with 19 additions and 23 deletions

View File

@ -1981,10 +1981,9 @@ Name | Description
nrpe_address | **Optional.** The host's address. Defaults to "$address$".
nrpe_port | **Optional.** The NRPE port. Defaults to 5668.
nrpe_command | **Optional.** The command that should be executed.
nrpe_no_ssl | **Optional.** Whether to disable SSL or not.
nrpe_timeout_unknown | **Optional.** Whether to set timeouts to unknown instead of critical state.
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. Defaults to `false`.
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

View File

@ -353,30 +353,27 @@ object CheckCommand "by_ssh" {
}
object CheckCommand "nrpe" {
import "plugin-check-command"
import "plugin-check-command"
command = PluginDir + "/check_nrpe"
command = PluginDir + "/check_nrpe"
arguments = {
"-H" = "$nrpe_address$"
"-p" = "$nrpe_port$"
"-c" = "$nrpe_command$"
"-n" = {
set_if = "$nrpe_no_ssl$"
arguments = {
"-H" = "$nrpe_address$"
"-p" = "$nrpe_port$"
"-c" = "$nrpe_command$"
"-n" = {
set_if = "$nrpe_no_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
}