mirror of https://github.com/Icinga/icinga2.git
parent
8980924567
commit
c4fa6e2ea2
|
@ -351,3 +351,32 @@ object CheckCommand "by_ssh" {
|
|||
vars.by_ssh_address = "$address$"
|
||||
vars.by_ssh_quiet = false
|
||||
}
|
||||
|
||||
object CheckCommand "nrpe" {
|
||||
import "plugin-check-command"
|
||||
|
||||
command = PluginDir + "/check_nrpe"
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
vars.nrpe_address = "$address$"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue