]> granicus.if.org Git - icinga2/commitdiff
Plugins: Add generic nrpe command definition.
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 22 May 2014 17:08:47 +0000 (19:08 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 22 May 2014 17:08:47 +0000 (19:08 +0200)
Refs #6225

itl/command-plugins.conf

index 30109081d32b4ae9346845cd77bf15662c9862ff..e6d16d79ab0324a17876c257fc36c2c7c412a948 100644 (file)
@@ -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$"
+}
+