]> granicus.if.org Git - icinga2/blobdiff - itl/command-plugins.conf
Merge pull request #6139 from Icinga/itl/disk-docker-types
[icinga2] / itl / command-plugins.conf
index f4c01134c7ebb4fa1a9626a5442a6fe6fc85ab75..0bf297fd156cc20e2d90531156a91497281bec31 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * Icinga 2                                                                   *
- * Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/)  *
+ * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/)  *
  *                                                                            *
  * This program is free software; you can redistribute it and/or              *
  * modify it under the terms of the GNU General Public License                *
@@ -176,35 +176,6 @@ object CheckCommand "fping6" {
        vars.fping_address = "$address6$"
 }
 
-object CheckCommand "dummy" {
-       command = [ PluginDir + "/check_dummy" ]
-
-       arguments = {
-               "state" = {
-                       value = "$dummy_state$"
-                       skip_key = true
-                       order = 1
-                       description = "The state. Can be one of 0 (ok), 1 (warning), 2 (critical) and 3 (unknown). Defaults to 0."
-               }
-               "text" = {
-                       value = "$dummy_text$"
-                       skip_key = true
-                       order = 2
-                       description = "Plugin output. Defaults to Check was successful."
-               }
-       }
-
-       vars.dummy_state = 0
-       vars.dummy_text = "Check was successful."
-}
-
-object CheckCommand "passive" {
-       import "dummy"
-
-       vars.dummy_state = 3
-       vars.dummy_text = "No Passive Check Result Received."
-}
-
 object CheckCommand "tcp" {
        import "ipv4-or-ipv6"
 
@@ -350,7 +321,6 @@ object CheckCommand "ssl" {
        vars.ssl_port = 443
        vars.ssl_cert_valid_days_warn = false
        vars.ssl_cert_valid_days_critical = false
-       vars.ssl_sni = "$ssl_address$"
 }
 
 
@@ -1399,10 +1369,12 @@ object CheckCommand "disk" {
                "-W" = {
                        value = "$disk_inode_wfree$"
                        description = "Exit with WARNING status if less than PERCENT of inode space is free"
+                       order = -3
                }
                "-K" = {
                        value = "$disk_inode_cfree$"
                        description = "Exit with CRITICAL status if less than PERCENT of inode space is free"
+                       order = -3
                }
                "-p" = {
                        value = "$disk_partitions$"
@@ -1466,6 +1438,7 @@ object CheckCommand "disk" {
                "-A" = {
                        set_if = "$disk_all$"
                        description = "Explicitly select all paths. This is equivalent to -R .*"
+                       order = 1
                }
                "-R" = {
                        value = "$disk_eregi_path$"
@@ -1507,7 +1480,23 @@ object CheckCommand "disk" {
        vars.disk_wfree = "20%"
        vars.disk_cfree = "10%"
        vars.disk_megabytes = true
-       vars.disk_exclude_type = [ "none", "tmpfs", "sysfs", "proc", "configfs", "devtmpfs", "devfs", "mtmfs", "tracefs", "cgroup", "fuse.gvfsd-fuse", "fuse.gvfs-fuse-daemon", "fdescfs" ]
+       vars.disk_exclude_type = [
+               "none",
+               "tmpfs",
+               "sysfs",
+               "proc",
+               "configfs",
+               "devtmpfs",
+               "devfs",
+               "mtmfs",
+               "tracefs",
+               "cgroup",
+               "fuse.gvfsd-fuse",
+               "fuse.gvfs-fuse-daemon",
+               "fdescfs",
+               "overlay",
+               "nsfs"
+       ]
 }
 
 object CheckCommand "disk_smb" {
@@ -2227,6 +2216,10 @@ object CheckCommand "by_ssh" {
                        set_if = "$by_ssh_ipv6$"
                        description = "Use IPv6 only"
                }
+               "-E" = {
+                       value = "$by_ssh_skip_stderr$"
+                       description = "Ignore all or (if specified) first n lines on STDERR [optional]"
+               }
        }
 
        vars.by_ssh_address = "$check_address$"
@@ -3109,3 +3102,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$"
+}