]> 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 12b59a0cbaff0425865541067ed382782d599aaa..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"
 
@@ -340,13 +311,16 @@ object CheckCommand "ssl" {
                                }
                        }
                }}
+               "-N" = {
+                       value = "$ssl_sni$"
+                       description = "Enable SSL/TLS hostname extension support (SNI)"
+               }
        }
 
        vars.ssl_address = "$check_address$"
        vars.ssl_port = 443
        vars.ssl_cert_valid_days_warn = false
        vars.ssl_cert_valid_days_critical = false
-       vars.ssl_sni = "$ssl_address$"
 }
 
 
@@ -747,7 +721,7 @@ object CheckCommand "smtp" {
                "-P" = {
                        value = "$smtp_authpass$"
                        description = "SMTP AUTH password"
-                       }
+               }
                "-q" = {
                        value = "$smtp_ignore_quit$"
                        description = "Ignore failure when sending QUIT command to server"
@@ -1287,6 +1261,10 @@ object CheckCommand "ntp_peer" {
                        value = "$ntp_port$"
                        description = "Port number (default: 123)"
                }
+               "-q" = {
+                       set_if = "$ntp_quiet$"
+                       description = "Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized"
+               }
                "-w" = {
                        value = "$ntp_warning$"
                        description = "Offset to result in warning status (seconds)"
@@ -1382,138 +1360,116 @@ object CheckCommand "disk" {
                        required = true
                        order = -3
                }
-
                "-c" = {
                        value = "$disk_cfree$"
                        description = "Exit with CRITICAL status if less than INTEGER units of disk are free or Exit with CRITCAL status if less than PERCENT of disk space is free"
                        required = true
                        order = -3
                }
-
                "-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$"
                        description = "Path or partition (may be repeated)"
                        repeat_key = true
                        order = 1
                }
-
                "-p_old" = {
                        key = "-p"
                        value = "$disk_partition$"
                        order = 1
                }
-
                "-x" = {
                        value = "$disk_partitions_excluded$"
                        description = "Ignore device (only works if -p unspecified)"
                }
-
                "-x_old" = {
                        key = "-x"
                        value = "$disk_partition_excluded$"
                }
-
                "-C" = {
                        set_if = "$disk_clear$"
                        description = "Clear thresholds"
                }
-
                "-E" = {
                        set_if = "$disk_exact_match$"
                        description = "For paths or partitions specified with -p, only check for exact paths"
                }
-
                "-e" = {
                        set_if = "$disk_errors_only$"
                        description = "Display only devices/mountpoints with errors"
                }
-
                "-f" = {
                        set_if = "$disk_ignore_reserved$"
                        description = "Don't account root-reserved blocks into freespace in perfdata"
                }
-
                "-g" = {
                        value = "$disk_group$"
                        description = "Group paths. Thresholds apply to (free-)space of all partitions together"
                }
-
                "-k" = {
                        set_if = "$disk_kilobytes$"
                        description = "Same as --units kB"
                }
-
                "-l" = {
                        set_if = "$disk_local$"
                        description = " Only check local filesystems"
                }
-
                "-L" = {
                        set_if = "$disk_stat_remote_fs$"
                        description = "Only check local filesystems against thresholds. Yet call stat on remote filesystems to test if they are accessible (e.g. to detect Stale NFS Handles)"
                }
-
                "-M" = {
                        set_if = "$disk_mountpoint$"
                        description = "Display the mountpoint instead of the partition"
                }
-
                "-m" = {
                        set_if = "$disk_megabytes$"
                        description = "Same as --units MB"
                }
-
                "-A" = {
                        set_if = "$disk_all$"
                        description = "Explicitly select all paths. This is equivalent to -R .*"
+                       order = 1
                }
-
                "-R" = {
                        value = "$disk_eregi_path$"
                        description = "Case insensitive regular expression for path/partition (may be repeated)"
                        repeat_key = true
                }
-
                "-r" = {
                        value = "$disk_ereg_path$"
                        description = "Regular expression for path or partition (may be repeated)"
                        repeat_key = true
                }
-
                "-I" = {
                        value = "$disk_ignore_eregi_path$"
                        description = "Regular expression to ignore selected path/partition (case insensitive) (may be repeated)"
                        repeat_key = true
                        order = 2
                }
-
                "-i" = {
                        value = "$disk_ignore_ereg_path$"
                        description = "Regular expression to ignore selected path or partition (may be repeated)"
                        repeat_key = true
                        order = 2
                }
-
                "-t" = {
                        value = "$disk_timeout$"
                        description = "Seconds before connection times out (default: 10)"
                }
-
                "-u" = {
                        value = "$disk_units$"
                        description = "Choose bytes, kB, MB, GB, TB (default: MB)"
                }
-
                "-X" = {
                        value = "$disk_exclude_type$"
                        description = "Ignore all filesystems of indicated type (may be repeated)"
@@ -1524,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", "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" {
@@ -1806,6 +1778,18 @@ object CheckCommand "snmp" {
                        set_if = "$snmp_getnext$"
                        description = "Use SNMP GETNEXT instead of SNMP GET"
                }
+               "--offset" = {
+                       value = "$snmp_offset$"
+                       description = "Add/substract the specified OFFSET to numeric sensor data"
+               }
+               "-D" = {
+                       value = "$snmp_output_delimiter$"
+                       description = "Separates output on multiple OID requests"
+               }
+               "-O" = {
+                       set_if = "$snmp_perf_oids$"
+                       description = "Label performance data with OIDs instead of --label's"
+               }
        }
 
        vars.snmp_address = {{
@@ -2056,7 +2040,6 @@ object CheckCommand "dns" {
        }
 
        vars.dns_lookup = "$host.name$"
-       vars.dns_query_type = "A"
        vars.dns_timeout = 10
 }
 
@@ -2233,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$"
@@ -2295,19 +2282,17 @@ object CheckCommand "nrpe" {
        arguments = {
                "-H" = {
                        value = "$nrpe_address$"
-                       description = ""
+                       description = "The address of the host running the NRPE daemon"
                }
                "-p" = {
                        value = "$nrpe_port$"
-                       description = ""
                }
                "-c" = {
                        value = "$nrpe_command$"
-                       description = ""
                }
                "-n" = {
                        set_if = "$nrpe_no_ssl$"
-                       description = "Do not use SSL."
+                       description = "Do not use SSL"
                }
                "-u" = {
                        set_if = "$nrpe_timeout_unknown$"
@@ -2315,7 +2300,7 @@ object CheckCommand "nrpe" {
                }
                "-t" = {
                        value = "$nrpe_timeout$"
-                       description = ""
+                       description = "<interval>:<state> = <Number of seconds before connection times out>:<Check state to exit with in the event of a timeout (default=CRITICAL)>"
                }
                "-a" = {
                        value = "$nrpe_arguments$"
@@ -2792,13 +2777,29 @@ object CheckCommand "negate" {
        command = [ PluginDir + "/negate" ]
 
        arguments = {
-               "-t" = "$negate_timeout$"
-               "-T" = "$negate_timeout_result$"
-               "-o" = "$negate_ok$"
-               "-w" = "$negate_warning$"
-               "-c" = "$negate_critical$"
+               "-t" = {
+                       value = "$negate_timeout$"
+                       description = "Seconds before plugin times out (default: 11)"
+               }
+               "-T" = {
+                       value = "$negate_timeout_result$"
+                       description = "Custom result on Negate timeouts"
+               }
+               "-o" = {
+                       value = "$negate_ok$"
+               }
+               "-w" = {
+                       value = "$negate_warning$"
+               }
+               "-c" = {
+                       value = "$negate_critical$"
+               }
+               "-u" = {
+                       value = "$negate_unknown$"
+               }
                "-s" = {
                        set_if = "$negate_substitute$"
+                       description = "Substitute output text as well. Will only substitute text in CAPITALS"
                }
                "--wrapped-plugin" = {
                        value = {{
@@ -2971,16 +2972,46 @@ object CheckCommand "mysql_query" {
        command = [ PluginDir + "/check_mysql_query" ]
 
        arguments = {
-               "-H" = "$mysql_query_hostname$"
-               "-P" = "$mysql_query_port$"
-               "-u" = "$mysql_query_username$"
-               "-p" = "$mysql_query_password$"
-               "-d" = "$mysql_query_database$"
-               "-f" = "$mysql_query_file$"
-               "-g" = "$mysql_query_group$"
-               "-q" = "$mysql_query_execute$"
-               "-w" = "$mysql_query_warning$"
-               "-c" = "$mysql_query_critical$"
+               "-H" = {
+                       value = "$mysql_query_hostname$"
+                       description = "Host name, IP Address, or unix socket (must be an absolute path)"
+               }
+               "-P" = {
+                       value = "$mysql_query_port$"
+                       description = "Port number (default: 3306)"
+               }
+               "-u" = {
+                       value = "$mysql_query_username$"
+                       description = "Username to login with"
+               }
+               "-p" = {
+                       value = "$mysql_query_password$"
+                       description = "Password to login with"
+               }
+               "-d" = {
+                       value = "$mysql_query_database$"
+                       description = "Database to check"
+               }
+               "-f" = {
+                       value = "$mysql_query_file$"
+                       description = "Read from the specified client options file"
+               }
+               "-g" = {
+                       value = "$mysql_query_group$"
+                       description = "Use a client options group"
+               }
+               "-q" = {
+                       value = "$mysql_query_execute$"
+                       description = "SQL query to run. Only first column in first row will be read"
+               }
+               "-w" = {
+                       value = "$mysql_query_warning$"
+                       description = "Warning range (format: start:end). Alert if outside this range"
+               }
+               "-c" = {
+                       value = "$mysql_query_critical$"
+                       description = "Critical range"
+               }
        }
 
        vars.mysql_query_hostname = "$check_address$"
@@ -2994,12 +3025,25 @@ object CheckCommand "radius" {
        ]
 
        arguments = {
-               "-H" = "$radius_address$",
-               "-F" = "$radius_config_file$",
-               "-u" = "$radius_username$",
-               "-p" = "$radius_password$",
+               "-H" = {
+                       value = "$radius_address$",
+                       description = "Host name, IP Address, or unix socket (must be an absolute path)"
+               }
+               "-F" = {
+                       value = "$radius_config_file$",
+                       description = "Configuration file"
+               }
+               "-u" = {
+                       value = "$radius_username$",
+                       description = "The user to authenticate"
+               }
+               "-p" = {
+                       value = "$radius_password$",
+                       description = "Password for authentication"
+               }
                "-P" = {
                        value = "$radius_port$",
+                       description = "Port number (default: 1645)"
                },
                "-n" = {
                        value = "$radius_nas_id$",
@@ -3058,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$"
+}