From: Michael Friedrich Date: Thu, 22 May 2014 17:08:47 +0000 (+0200) Subject: Plugins: Add generic nrpe command definition. X-Git-Tag: v2.0.0-beta1~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4fa6e2ea26ce563c23bfdea70e7e44e67fff543;p=icinga2 Plugins: Add generic nrpe command definition. Refs #6225 --- diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 30109081d..e6d16d79a 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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$" +} +