]> granicus.if.org Git - icinga2/blobdiff - itl/command-plugins.conf
ITL: Add check_rpc
[icinga2] / itl / command-plugins.conf
index f4c01134c7ebb4fa1a9626a5442a6fe6fc85ab75..0aca85b79c63d1cb8466a090182807a5f1b1430f 100644 (file)
@@ -3109,3 +3109,44 @@ object CheckCommand "nscp_api" {
 
        vars.nscp_api_host = "$check_address$"
 }
+
+object CheckCommand "rpc" {
+       import "ipv4-or-ipv6"
+
+       command = [ PluginDir + "/check_rpc" ]
+
+       arguments = {
+               "-H" = {
+                       value = "$rpc_address$"
+                       description = "RPC host address"
+                       required = true
+               }
+               "-C" = {
+                       value = "$rpc_command$"
+                       description = "Programm name (or number)"
+                       required = true
+               }
+               "-p" = {
+                       value = "$rpc_port$"
+                       description = "RPC port"
+               }
+               "-c" = {
+                       value = "$rpc_version$"
+                       description = "The version to check"
+               }
+               "-u" = {
+                       set_if = "$rpc_udp$"
+                       description = "Test UDP"
+               }
+               "-t" = {
+                       set_if = "$rpc_tcp$"
+                       description     = "Test TCP"
+               }
+               "-v" = {
+                       set_if = "$rpc_verbose$"
+                       description = "Show verbose details"
+               }
+       }
+
+       vars.rpc_address = "$check_address$"
+}