2019-02-25 14:48:22 +01:00
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2013-06-13 11:33:00 +02:00
2015-02-13 11:52:08 +01:00
template CheckCommand "ipv4-or-ipv6" {
vars.check_address = {{
var addr_v4 = macro("$address$")
var addr_v6 = macro("$address6$")
2015-11-01 16:33:02 +01:00
if (addr_v4 && !macro("$check_ipv6$") || macro("$check_ipv4$")) {
2015-02-13 11:52:08 +01:00
return addr_v4
} else {
return addr_v6
}
}}
2015-11-01 16:33:02 +01:00
vars.check_ipv4 = false
vars.check_ipv6 = false
2015-02-13 11:52:08 +01:00
}
2014-04-26 13:16:08 +02:00
template CheckCommand "ping-common" {
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_ping" ]
2013-06-13 11:33:00 +02:00
2014-04-26 13:16:08 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$ping_address$"
description = "host to ping"
}
"-w" = {
value = "$ping_wrta$,$ping_wpl$%"
description = "warning threshold pair"
}
"-c" = {
value = "$ping_crta$,$ping_cpl$%"
description = "critical threshold pair"
}
"-p" = {
value = "$ping_packets$"
description = "number of ICMP ECHO packets to send (Default: 5)"
}
"-t" = {
value = "$ping_timeout$"
description = "Seconds before connection times out (default: 10)"
}
2014-04-26 13:16:08 +02:00
}
vars.ping_wrta = 100
vars.ping_wpl = 5
vars.ping_crta = 200
vars.ping_cpl = 15
2013-06-13 11:33:00 +02:00
}
2015-02-13 11:52:08 +01:00
object CheckCommand "ping" {
import "ping-common"
import "ipv4-or-ipv6"
vars.ping_address = "$check_address$"
}
2014-04-26 13:16:08 +02:00
object CheckCommand "ping4" {
2014-04-29 10:44:09 +02:00
import "ping-common"
2014-03-27 12:30:24 +01:00
2014-04-26 13:16:08 +02:00
command += [ "-4" ]
vars.ping_address = "$address$"
}
2013-06-13 11:33:00 +02:00
2014-04-26 13:16:08 +02:00
object CheckCommand "ping6" {
2014-04-29 10:44:09 +02:00
import "ping-common"
2013-06-13 11:33:00 +02:00
2014-04-26 13:16:08 +02:00
command += [ "-6" ]
2013-06-13 11:33:00 +02:00
2014-04-26 13:16:08 +02:00
vars.ping_address = "$address6$"
2013-06-13 11:33:00 +02:00
}
2015-02-13 11:52:08 +01:00
template CheckCommand "hostalive-common" {
2014-04-29 10:44:09 +02:00
vars.ping_wrta = 3000.0
vars.ping_wpl = 80
2014-04-04 16:22:12 +02:00
2014-04-29 10:44:09 +02:00
vars.ping_crta = 5000.0
2014-04-26 13:16:08 +02:00
vars.ping_cpl = 100
2014-04-04 16:22:12 +02:00
}
2015-02-13 11:52:08 +01:00
object CheckCommand "hostalive" {
import "ping"
import "hostalive-common"
}
object CheckCommand "hostalive4" {
import "ping4"
import "hostalive-common"
}
object CheckCommand "hostalive6" {
import "ping6"
import "hostalive-common"
}
2014-06-18 19:26:18 +02:00
template CheckCommand "fping-common" {
2014-09-11 08:55:59 +02:00
command = [
PluginDir + "/check_fping",
"$fping_address$"
]
2014-06-18 19:26:18 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-w" = {
value = "$fping_wrta$,$fping_wpl$%"
description = "warning threshold pair"
}
"-c" = {
value = "$fping_crta$,$fping_cpl$%"
description = "critical threshold pair"
}
"-n" = {
value = "$fping_number$"
description = "number of ICMP packets to send (default: 1)"
}
"-i" = {
value = "$fping_interval$"
description = "Interval (ms) between sending packets (default: fping's default for -p)"
}
"-b" = {
value = "$fping_bytes$"
description = "size of ICMP packet (default: 56)"
}
"-T" = {
value = "$fping_target_timeout$"
description = "Target timeout (ms) (default: fping's default for -t)"
}
"-S" = {
value = "$fping_source_ip$"
description = "name or IP Address of sourceip"
}
"-I" = {
value = "$fping_source_interface$"
description = "source interface name"
}
2014-06-18 19:26:18 +02:00
}
vars.fping_wrta = 100
vars.fping_wpl = 5
vars.fping_crta = 200
vars.fping_cpl = 15
vars.fping_number = 5
vars.fping_interval = 500
}
object CheckCommand "fping4" {
2015-02-24 21:56:32 +01:00
import "fping-common"
2014-06-18 19:26:18 +02:00
2015-02-24 21:56:32 +01:00
command += [ "-4" ]
2014-06-18 19:26:18 +02:00
2015-02-24 21:56:32 +01:00
vars.fping_address = "$address$"
2014-06-18 19:26:18 +02:00
}
object CheckCommand "fping6" {
2015-02-24 21:56:32 +01:00
import "fping-common"
2014-06-18 19:26:18 +02:00
2015-02-24 21:56:32 +01:00
command += [ "-6" ]
2014-06-18 19:26:18 +02:00
2015-02-24 21:56:32 +01:00
vars.fping_address = "$address6$"
2014-06-18 19:26:18 +02:00
}
2014-03-27 12:30:24 +01:00
object CheckCommand "tcp" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-03-27 12:30:24 +01:00
2015-04-22 09:15:58 +02:00
command = [ PluginDir + "/check_tcp" ]
arguments = {
"-H" = {
value = "$tcp_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)."
}
"-p" = {
value = "$tcp_port$"
description = "The TCP port number."
}
"-e" = {
2015-06-15 11:29:06 +02:00
value = "$tcp_expect$"
2015-04-22 09:15:58 +02:00
description = "String to expect in server response (may be repeated)."
}
"-A" = {
set_if = "$tcp_all$"
description = "All expect strings need to occur in server response. Defaults to false."
}
"-E_send" = {
key = "-E"
order = 1
set_if = "$tcp_escape_send$"
2015-04-24 05:14:52 +02:00
description = "Enable usage of \n, \r, \t or \\ in send string."
2015-04-22 09:15:58 +02:00
}
"-s" = {
order = 2
value = "$tcp_send$"
description = "String to send to the server."
}
"-E_quit" = {
key = "-E"
order = 3
set_if = "$tcp_escape_quit$"
2015-04-24 05:14:52 +02:00
description = "Enable usage of \n, \r, \t or \\ in quit string."
2015-04-22 09:15:58 +02:00
}
"-q" = {
order = 4
value = "$tcp_quit$"
description = "String to send server to initiate a clean close of the connection."
}
"-r" = {
value = "$tcp_refuse$"
description = "Accept TCP refusals with states ok, warn, crit. Defaults to crit."
}
"-M" = {
value = "$tcp_mismatch$"
description = "Accept expected string mismatches with states ok, warn, crit. Defaults to warn."
}
"-j" = {
set_if = "$tcp_jail$"
description = "Hide output from TCP socket."
}
"-m" = {
value = "$tcp_maxbytes$"
description = "Close connection once more than this number of bytes are received."
}
"-d" = {
value = "$tcp_delay$"
description = "Seconds to wait between sending string and polling for response."
}
"-D" = {
value = "$tcp_certificate$"
description = "Minimum number of days a certificate has to be valid. 1st value is number of days for warning, 2nd is critical (if not specified: 0) - seperated by comma."
}
"-S" = {
set_if = "$tcp_ssl$"
description = "Use SSL for the connection."
}
"-w" = {
value = "$tcp_wtime$"
description = "Response time to result in warning status (seconds)."
}
"-c" = {
value = "$tcp_ctime$"
description = "Response time to result in critical status (seconds)."
}
"-t" = {
value = "$tcp_timeout$"
description = "Seconds before connection times out. Defaults to 10."
}
2015-11-01 16:33:02 +01:00
"-4" = {
set_if = "$tcp_ipv4$"
2015-11-21 11:26:38 +01:00
description = "Use IPv4 connection"
2015-11-01 16:33:02 +01:00
}
"-6" = {
set_if = "$tcp_ipv6$"
2015-11-21 11:26:38 +01:00
description = "Use IPv6 connection"
2015-11-01 16:33:02 +01:00
}
2015-04-22 09:15:58 +02:00
}
2014-04-26 13:16:08 +02:00
2015-02-13 11:52:08 +01:00
vars.tcp_address = "$check_address$"
2015-04-22 09:15:58 +02:00
vars.tcp_all = false
vars.tcp_refuse = "crit"
vars.tcp_mismatch = "warn"
vars.tcp_timeout = 10
2015-11-01 16:33:02 +01:00
vars.check_ipv4 = "$tcp_ipv4$"
vars.check_ipv6 = "$tcp_ipv6$"
2013-06-13 11:33:00 +02:00
}
2014-06-15 23:58:46 +02:00
object CheckCommand "ssl" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-06-15 23:58:46 +02:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_tcp" ]
2014-06-15 23:58:46 +02:00
arguments = {
2017-04-11 16:40:25 +02:00
"-H" = {
value = "$ssl_address$"
description = "Host address"
}
"-p" = {
value = "$ssl_port$"
description ="TCP port (default: 443)"
}
2017-06-11 21:47:39 +02:00
"--ssl" = {
description = "Use SSL for the connection"
}
2017-04-11 16:40:25 +02:00
"-t" = {
value = "$ssl_timeout$"
description = "Seconds before connection times out (default: 10)"
}
"-D" = {{
var days_warn = macro("$ssl_cert_valid_days_warn$")
var days_critical = macro("$ssl_cert_valid_days_critical$")
if (days_warn) {
if (days_critical) {
return days_warn + "," + days_critical
} else {
return days_warn
}
}
}}
2020-01-08 10:15:29 +01:00
"--sni" = {
2017-09-22 17:58:57 +02:00
value = "$ssl_sni$"
description = "Enable SSL/TLS hostname extension support (SNI)"
}
2014-06-15 23:58:46 +02:00
}
2015-02-13 11:52:08 +01:00
vars.ssl_address = "$check_address$"
2017-04-11 16:40:25 +02:00
vars.ssl_port = 443
vars.ssl_cert_valid_days_warn = false
vars.ssl_cert_valid_days_critical = false
2014-06-15 23:58:46 +02:00
}
2017-04-11 16:40:25 +02:00
2014-03-27 12:30:24 +01:00
object CheckCommand "udp" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-03-27 12:30:24 +01:00
2013-06-13 11:33:00 +02:00
command = [
2014-03-31 13:11:36 +02:00
PluginDir + "/check_udp",
2014-04-26 13:16:08 +02:00
"-H", "$udp_address$",
"-p", "$udp_port$"
2013-06-13 11:33:00 +02:00
]
2015-02-23 13:54:18 +01:00
arguments = {
"-s" = {
value = "$udp_send$"
required = true
2017-06-11 21:47:39 +02:00
description = "String to send to the server"
2015-02-23 13:54:18 +01:00
}
"-e" = {
value = "$udp_expect$"
required = true
2017-06-11 21:47:39 +02:00
description = " String to expect in server response"
}
"-q" = {
value = "$udp_quit$"
description = "String to send server to initiate a clean close of the connection"
2015-02-23 13:54:18 +01:00
}
2015-11-01 16:33:02 +01:00
"-4" = {
set_if = "$udp_ipv4$"
2015-11-21 11:26:38 +01:00
description = "Use IPv4 connection"
2015-11-01 16:33:02 +01:00
}
"-6" = {
set_if = "$udp_ipv6$"
2015-11-21 11:26:38 +01:00
description = "Use IPv6 connection"
2015-11-01 16:33:02 +01:00
}
2015-02-23 13:54:18 +01:00
}
2015-02-13 11:52:08 +01:00
vars.udp_address = "$check_address$"
2015-11-01 16:33:02 +01:00
vars.check_ipv4 = "$udp_ipv4$"
vars.check_ipv6 = "$udp_ipv6$"
2013-06-13 11:33:00 +02:00
}
2014-04-26 13:16:08 +02:00
object CheckCommand "http" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-03-27 12:30:24 +01:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_http" ]
2014-06-02 10:47:31 +02:00
2014-04-26 13:16:08 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$http_vhost$"
description = "Host name argument for servers using host headers (virtual host)"
}
"-I" = {
2020-07-10 12:31:09 +02:00
set_if = {{ string(macro("$http_address$")) != "" }}
2017-06-11 21:47:39 +02:00
value = "$http_address$"
description = "IP address or name (use numeric address if possible to bypass DNS lookup)"
}
"-u" = {
value = "$http_uri$"
description = "URL to GET or POST (default: /)"
}
"-p" = {
value = "$http_port$"
description = "Port number (default: 80)"
}
2014-04-26 13:16:08 +02:00
"-S" = {
set_if = "$http_ssl$"
2017-06-11 21:47:39 +02:00
description = "Connect via SSL"
2014-04-26 13:16:08 +02:00
}
2015-11-16 20:34:18 +01:00
"-S1" = {
set_if = "$http_ssl_force_tlsv1$"
2017-06-11 21:47:39 +02:00
description = "Connect via SSL version TLSv1"
2015-11-16 20:34:18 +01:00
}
2016-03-15 15:26:22 +01:00
"-S1.1" = {
set_if = "$http_ssl_force_tlsv1_1$"
2017-06-11 21:47:39 +02:00
description = "Connect via SSL version TLSv1.1"
2016-03-15 15:26:22 +01:00
}
"-S1.2" = {
set_if = "$http_ssl_force_tlsv1_2$"
2017-06-11 21:47:39 +02:00
description = "Connect via SSL version TLSv1.2"
2016-03-15 15:26:22 +01:00
}
2015-11-16 20:34:18 +01:00
"-S2" = {
set_if = "$http_ssl_force_sslv2$"
2017-06-11 21:47:39 +02:00
description = "Connect via SSL version SSLv2"
2015-11-16 20:34:18 +01:00
}
"-S3" = {
set_if = "$http_ssl_force_sslv3$"
2017-06-11 21:47:39 +02:00
description = "Connect via SSL version SSLv3"
2015-11-16 20:34:18 +01:00
}
2016-03-15 15:26:22 +01:00
"-S1+" = {
set_if = "$http_ssl_force_tlsv1_or_higher$"
2017-06-11 21:47:39 +02:00
description = "Connect via SSL version TLSv1 and newer"
2016-03-15 15:26:22 +01:00
}
"-S1.1+" = {
set_if = "$http_ssl_force_tlsv1_1_or_higher$"
2017-06-11 21:47:39 +02:00
description = "Connect via SSL version TLSv1.1 and newer"
2016-03-15 15:26:22 +01:00
}
"-S1.2+" = {
set_if = "$http_ssl_force_tlsv1_2_or_higher$"
2017-06-11 21:47:39 +02:00
description = "Connect via SSL version TLSv1.2 and newer"
2016-03-15 15:26:22 +01:00
}
"-S2+" = {
set_if = "$http_ssl_force_sslv2_or_higher$"
2017-06-11 21:47:39 +02:00
description = "Connect via SSL version SSLv2 and newer"
2016-03-15 15:26:22 +01:00
}
"-S3+" = {
set_if = "$http_ssl_force_sslv3_or_higher$"
2017-06-11 21:47:39 +02:00
description = "Connect via SSL version SSLv3 and newer"
2016-03-15 15:26:22 +01:00
}
2014-06-27 21:38:11 +02:00
"--sni" = {
set_if = "$http_sni$"
2017-06-11 21:47:39 +02:00
description = "Enable SSL/TLS hostname extension support (SNI)"
2014-06-27 21:38:11 +02:00
}
2014-09-24 10:37:24 +02:00
"-C" = {
value = "$http_certificate$"
2016-08-13 15:50:45 +02:00
description = "Minimum number of days a certificate has to be valid. This parameter explicitely sets the port to 443 and ignores the URL if passed."
2014-09-24 10:37:24 +02:00
}
"-J" = {
value = "$http_clientcert$"
description = "Name of file contains the client certificate (PEM format)"
}
"-K" = {
value = "$http_privatekey$"
description = "Name of file contains the private key (PEM format)"
}
2014-06-03 19:54:59 +02:00
"-a" = {
value = "$http_auth_pair$"
description = "Username:password on sites with basic authentication"
}
2014-06-15 23:13:04 +02:00
"--no-body" = {
set_if = "$http_ignore_body$"
2017-06-11 21:47:39 +02:00
description = "Don't wait for document body: stop reading after headers"
}
"-w" = {
value = "$http_warn_time$"
description = "Response time to result in warning status (seconds)"
}
"-c" = {
value = "$http_critical_time$"
description = "Response time to result in critical status (seconds)"
}
"-e" = {
value = "$http_expect$"
description = "Comma-delimited list of strings, at least one of them is expected in the first (status) line of the server response (default: HTTP/1.)"
2014-06-15 23:13:04 +02:00
}
2014-09-24 10:37:24 +02:00
"-d" = {
value = "$http_headerstring$"
description = "String to expect in the response headers"
}
"-s" = {
value = "$http_string$"
description = "String to expect in the content"
}
"-P" = {
value = "$http_post$"
description = "URL encoded http POST data"
}
"-j" = {
value = "$http_method$"
description = "Set http method (for example: HEAD, OPTIONS, TRACE, PUT, DELETE)"
}
"-M" = {
value = "$http_maxage$"
description = "Warn if document is more than seconds old"
}
"-T" = {
value = "$http_contenttype$"
description = "Specify Content-Type header when POSTing"
}
"-l" = {
2014-10-11 19:30:53 +02:00
set_if = "$http_linespan$"
2014-09-24 10:37:24 +02:00
description = "Allow regex to span newline"
order = 1
}
"-r" = {
value = "$http_expect_body_regex$"
description = "Search page for regex"
order = 2
}
"-R" = {
value = "$http_expect_body_eregi$"
description = "Search page for case-insensitive regex"
order = 2
}
"--invert-regex" = {
set_if = "$http_invertregex$"
description = "Return CRITICAL if found, OK if not"
}
"-b" = {
value = "$http_proxy_auth_pair$"
description = "Username:password on proxy-servers with basic authentication"
}
"-A" = {
value = "$http_useragent$"
description = "String to be sent in http header as User Agent"
}
"-k" = {
value = "$http_header$"
2021-10-01 17:40:38 +02:00
description = "Any other tags to be sent in http header (may be repeated)"
2014-09-24 10:37:24 +02:00
}
"-E" = {
set_if = "$http_extendedperfdata$"
description = "Print additional perfdata"
}
"-f" = {
value = "$http_onredirect$"
description = "How to handle redirect pages"
}
"-m" = {
value = "$http_pagesize$"
description = "Minim page size required:Maximum page size required"
}
"-t" = {
value = "$http_timeout$"
description = "Seconds before connection times out"
}
2015-11-01 16:33:02 +01:00
"-4" = {
set_if = "$http_ipv4$"
2015-11-21 11:26:38 +01:00
description = "Use IPv4 connection"
2015-11-01 16:33:02 +01:00
}
"-6" = {
set_if = "$http_ipv6$"
2015-11-21 11:26:38 +01:00
description = "Use IPv6 connection"
2015-11-01 16:33:02 +01:00
}
2017-01-11 09:41:42 +01:00
"-L" = {
set_if = "$http_link$"
description = "Wrap output in HTML link"
}
2016-11-11 14:09:54 +01:00
"-v" = {
set_if = "$http_verbose$"
description = "Show details for command-line debugging"
}
2014-04-26 13:16:08 +02:00
}
2015-02-13 11:52:08 +01:00
vars.http_address = "$check_address$"
2014-04-26 13:16:08 +02:00
vars.http_ssl = false
2014-06-27 21:38:11 +02:00
vars.http_sni = false
2014-09-24 10:37:24 +02:00
vars.http_linespan = false
vars.http_invertregex = false
2015-11-01 16:33:02 +01:00
vars.check_ipv4 = "$http_ipv4$"
vars.check_ipv6 = "$http_ipv6$"
2017-01-11 09:41:42 +01:00
vars.http_link = false
2016-11-11 14:09:54 +01:00
vars.http_verbose = false
2013-06-13 11:33:00 +02:00
}
2014-05-28 23:08:32 +02:00
object CheckCommand "ftp" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-05-28 23:08:32 +02:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_ftp" ]
2014-05-28 23:08:32 +02:00
arguments = {
2015-04-21 18:53:18 +02:00
"-H" = {
value = "$ftp_address$"
description = "The host's address. Defaults to $address$ or $address6$ if the address attribute is not set."
}
"-p" = {
value = "$ftp_port$"
description = "The FTP port number. Defaults to none"
}
"-e" = {
value = "$ftp_expect$"
description = "String to expect in server response (may be repeated)."
}
"-A" = {
set_if = "$ftp_all$"
description = "All expect strings need to occur in server response. Default is any."
}
"-E_send" = {
key = "-E"
order = 1
set_if = "$ftp_escape_send$"
description = "Enable usage of \n, \r, \t or \\ in send string. Default is nothing."
}
"-s" = {
order = 2
value = "$ftp_send$"
description = "String to send to the server."
}
"-E_quit" = {
key = "-E"
order = 3
set_if = "$ftp_escape_quit$"
description = "Can use \n, \r, \t or \\ in quit string. Default is \r\n added to end of quit."
}
"-q" = {
order = 4
value = "$ftp_quit$"
description = "String to send server to initiate a clean close of the connection."
}
"-r" = {
value = "$ftp_refuse$"
description = "Accept TCP refusals with states ok, warn, crit. Defaults to crit."
}
"-M" = {
value = "$ftp_mismatch$"
description = "Accept expected string mismatches with states ok, warn, crit. Defaults to warn."
}
"-j" = {
set_if = "$ftp_jail$"
description = "Hide output from TCP socket."
}
"-m" = {
value = "$ftp_maxbytes$"
description = "Close connection once more than this number of bytes are received."
}
"-d" = {
value = "$ftp_delay$"
description = "Seconds to wait between sending string and polling for response."
}
"-D" = {
value = "$ftp_certificate$"
description = "Minimum number of days a certificate has to be valid. 1st value is number of days for warning, 2nd is critical (if not specified: 0) - seperated by comma."
}
"-S" = {
set_if = "$ftp_ssl$"
description = "Use SSL for the connection."
}
"-w" = {
value = "$ftp_wtime$"
description = "Response time to result in warning status (seconds)."
}
"-c" = {
value = "$ftp_ctime$"
description = "Response time to result in critical status (seconds)."
}
"-t" = {
value = "$ftp_timeout$"
description = "Seconds before connection times out. Defaults to 10."
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$ftp_ipv4$"
description = "Use IPv4 connection"
}
"-6" = {
set_if = "$ftp_ipv6$"
description = "Use IPv6 connection"
}
2014-05-28 23:08:32 +02:00
}
2015-02-13 11:52:08 +01:00
vars.ftp_address = "$check_address$"
2015-04-21 18:53:18 +02:00
vars.ftp_ssl = false
vars.ftp_refuse = "crit"
vars.ftp_mismatch = "warn"
vars.ftp_timeout = 10
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$ftp_ipv4$"
vars.check_ipv6 = "$ftp_ipv6$"
2014-05-28 23:08:32 +02:00
}
2014-04-26 13:16:08 +02:00
object CheckCommand "smtp" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-03-27 12:30:24 +01:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_smtp" ]
2013-06-13 11:33:00 +02:00
2014-04-26 13:16:08 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$smtp_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-p" = {
value = "$smtp_port$"
description = "Port number (default: 25)"
}
"-f" = {
value = "$smtp_mail_from$"
description = "FROM-address to include in MAIL command, required by Exchange 2000"
}
"-e" = {
value = "$smtp_expect$"
description = "String to expect in first line of server response (default: '220')"
}
"-C" = {
value = "$smtp_command$"
description = "SMTP command"
}
"-R" = {
value = "$smtp_response$"
description = "Expected response to command (may be used repeatedly)"
}
"-F" = {
value = "$smtp_helo_fqdn$"
description = "FQDN used for HELO"
}
"-D" = {
value = "$smtp_certificate_age$"
description = "Minimum number of days a certificate has to be valid"
}
2015-11-21 11:26:38 +01:00
"-S" = {
set_if = "$smtp_starttls$"
description = "Use STARTTLS for the connection."
}
2017-06-11 21:47:39 +02:00
"-A" = {
value = "$smtp_authtype$"
description = "SMTP AUTH type to check (default none, only LOGIN supported)"
}
"-U" = {
value = "$smtp_authuser$"
description = "SMTP AUTH username"
}
"-P" = {
value = "$smtp_authpass$"
description = "SMTP AUTH password"
2017-06-19 15:22:19 +02:00
}
2017-06-11 21:47:39 +02:00
"-q" = {
value = "$smtp_ignore_quit$"
description = "Ignore failure when sending QUIT command to server"
}
"-w" = {
value = "$smtp_warning$"
description = "Response time to result in warning status (seconds)"
}
"-c" = {
value = "$smtp_critical$"
description = "Response time to result in critical status (seconds)"
}
"-t" = {
value = "$smtp_timeout$"
description = "Seconds before connection times out (default: 10)"
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$smtp_ipv4$"
description = "Use IPv4 connection"
}
"-6" = {
set_if = "$smtp_ipv6$"
description = "Use IPv6 connection"
}
2014-04-26 13:16:08 +02:00
}
2014-03-27 12:30:24 +01:00
2015-02-13 11:52:08 +01:00
vars.smtp_address = "$check_address$"
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$smtp_ipv4$"
vars.check_ipv6 = "$smtp_ipv6$"
2013-06-13 11:33:00 +02:00
}
2014-03-27 12:30:24 +01:00
object CheckCommand "ssmtp" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-03-27 12:30:24 +01:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_ssmtp" ]
2015-11-21 11:26:38 +01:00
2014-04-26 13:16:08 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$ssmtp_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-p" = {
value = "$ssmtp_port$"
description = "Port number (default: none)"
}
"-E" = {
value = "$ssmtp_escape$"
description = "Can use \n, \r, \t or \\ in send or quit string. Must come before send or quit option. Default: nothing added to send, \r\n added to end of quit"
}
"-s" = {
value = "$ssmtp_send$"
description = "String to send to the server"
}
"-e" = {
value = "$ssmtp_expect$"
description = "String to expect in server response (may be repeated)"
}
2015-11-21 11:26:38 +01:00
"-A" = {
set_if = "$ssmtp_all$"
description = "All expect strings need to occur in server response. Default is any."
}
2017-06-11 21:47:39 +02:00
"-q" = {
value = "$ssmtp_quit$"
description = "String to send server to initiate a clean close of the connection"
}
"-r" = {
value = "$ssmtp_refuse$"
description = "Accept TCP refusals with states ok, warn, crit (default: crit)"
}
"-M" = {
value = "$ssmtp_mismatch$"
description = "Accept expected string mismatches with states ok, warn, crit (default: warn)"
}
2015-11-21 11:26:38 +01:00
"-j" = {
set_if = "$ssmtp_jail$"
description = "Hide output from TCP socket."
}
2017-06-11 21:47:39 +02:00
"-m" = {
value = "$ssmtp_maxbytes$"
description = "Close connection once more than this number of bytes are received"
}
"-d" = {
value = "$ssmtp_delay$"
description = "Seconds to wait between sending string and polling for response"
}
"-D" = {
value = "$ssmtp_certificate_age$"
description = "Minimum number of days a certificate has to be valid"
}
2015-11-21 11:26:38 +01:00
"-S" = {
set_if = "$ssmtp_ssl$"
description = "Use SSL for the connection."
}
2017-06-11 21:47:39 +02:00
"-w" = {
value = "$ssmtp_warning$"
description = "Response time to result in warning status (seconds)"
}
"-c" = {
value = "$ssmtp_critical$"
description = "Response time to result in critical status (seconds)"
}
"-t" = {
value = "$ssmtp_timeout$"
description = "Seconds before connection times out (default: 10)"
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$ssmtp_ipv4$"
description = "Use IPv4 connection"
}
"-6" = {
set_if = "$ssmtp_ipv6$"
description = "Use IPv6 connection"
}
2014-04-26 13:16:08 +02:00
}
2013-06-13 11:33:00 +02:00
2015-02-13 11:52:08 +01:00
vars.ssmtp_address = "$check_address$"
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$ssmtp_ipv4$"
vars.check_ipv6 = "$ssmtp_ipv6$"
2013-06-13 11:33:00 +02:00
}
2014-05-28 22:14:24 +02:00
object CheckCommand "imap" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-05-28 22:14:24 +02:00
2015-02-24 21:56:32 +01:00
command = [ PluginDir + "/check_imap" ]
2014-05-28 22:14:24 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$imap_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-p" = {
value = "$imap_port$"
description = "Port number (default: none)"
}
"-E" = {
value = "$imap_escape$"
description = "Can use \n, \r, \t or \\ in send or quit string. Must come before send or quit option. Default: nothing added to send, \r\n added to end of quit"
}
"-s" = {
value = "$imap_send$"
description = "String to send to the server"
}
"-e" = {
value = "$imap_expect$"
description = "String to expect in server response (may be repeated)"
}
2015-11-21 11:26:38 +01:00
"-A" = {
set_if = "$imap_all$"
description = "All expect strings need to occur in server response. Default is any."
}
2017-06-11 21:47:39 +02:00
"-q" = {
value = "$imap_quit$"
description = "String to send server to initiate a clean close of the connection"
}
"-r" = {
value = "$imap_refuse$"
description = "Accept TCP refusals with states ok, warn, crit (default: crit)"
}
"-M" = {
value = "$imap_mismatch$"
description = "Accept expected string mismatches with states ok, warn, crit (default: warn)"
}
2015-11-21 11:26:38 +01:00
"-j" = {
set_if = "$imap_jail$"
description = "Hide output from TCP socket."
}
2017-06-11 21:47:39 +02:00
"-m" = {
value = "$imap_maxbytes$"
description = "Close connection once more than this number of bytes are received"
}
"-d" = {
value = "$imap_delay$"
description = "Seconds to wait between sending string and polling for response"
}
"-D" = {
value = "$imap_certificate_age$"
description = "Minimum number of days a certificate has to be valid"
}
2015-11-21 11:26:38 +01:00
"-S" = {
set_if = "$imap_ssl$"
description = "Use SSL for the connection."
}
2017-06-11 21:47:39 +02:00
"-w" = {
value = "$imap_warning$"
description = "Response time to result in warning status (seconds)"
}
"-c" = {
value = "$imap_critical$"
description = "Response time to result in critical status (seconds)"
}
"-t" = {
value = "$imap_timeout$"
description = "Seconds before connection times out (default: 10)"
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$imap_ipv4$"
description = "Use IPv4 connection"
}
"-6" = {
set_if = "$imap_ipv6$"
description = "Use IPv6 connection"
}
2014-05-28 22:14:24 +02:00
}
2015-02-24 21:56:32 +01:00
vars.imap_address = "$check_address$"
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$imap_ipv4$"
vars.check_ipv6 = "$imap_ipv6$"
2014-05-28 22:14:24 +02:00
}
object CheckCommand "simap" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-05-28 22:14:24 +02:00
2015-11-21 11:26:38 +01:00
command = [ PluginDir + "/check_simap" ]
2014-05-28 22:14:24 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$simap_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-p" = {
value = "$simap_port$"
description = "Port number (default: none)"
}
"-E" = {
value = "$simap_escape$"
description = "Can use \n, \r, \t or \\ in send or quit string. Must come before send or quit option. Default: nothing added to send, \r\n added to end of quit"
}
"-s" = {
value = "$simap_send$"
description = "String to send to the server"
}
"-e" = {
value = "$simap_expect$"
description = "String to expect in server response (may be repeated)"
}
2015-11-21 11:26:38 +01:00
"-A" = {
set_if = "$simap_all$"
description = "All expect strings need to occur in server response. Default is any."
}
2017-06-11 21:47:39 +02:00
"-q" = {
value = "$simap_quit$"
description = "String to send server to initiate a clean close of the connection"
}
"-r" = {
value = "$simap_refuse$"
description = "Accept TCP refusals with states ok, warn, crit (default: crit)"
}
"-M" = {
value = "$simap_mismatch$"
description = "Accept expected string mismatches with states ok, warn, crit (default: warn)"
}
2015-11-21 11:26:38 +01:00
"-j" = {
set_if = "$simap_jail$"
description = "Hide output from TCP socket."
}
2017-06-11 21:47:39 +02:00
"-m" = {
value = "$simap_maxbytes$"
description = "Close connection once more than this number of bytes are received"
}
"-d" = {
value = "$simap_delay$"
description = "Seconds to wait between sending string and polling for response"
}
"-D" = {
value = "$simap_certificate_age$"
description = "Minimum number of days a certificate has to be valid"
}
2015-11-21 11:26:38 +01:00
"-S" = {
set_if = "$simap_ssl$"
description = "Use SSL for the connection."
}
2017-06-11 21:47:39 +02:00
"-w" = {
value = "$simap_warning$"
description = "Response time to result in warning status (seconds)"
}
"-c" = {
value = "$simap_critical$"
description = "Response time to result in critical status (seconds)"
}
"-t" = {
value = "$simap_timeout$"
description = "Seconds before connection times out (default: 10)"
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$simap_ipv4$"
description = "Use IPv4 connection"
}
"-6" = {
set_if = "$simap_ipv6$"
description = "Use IPv6 connection"
}
2014-05-28 22:14:24 +02:00
}
2015-02-13 11:52:08 +01:00
vars.simap_address = "$check_address$"
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$simap_ipv4$"
vars.check_ipv6 = "$simap_ipv6$"
2014-05-28 22:14:24 +02:00
}
object CheckCommand "pop" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-05-28 22:14:24 +02:00
2015-02-24 21:56:32 +01:00
command = [ PluginDir + "/check_pop" ]
2014-05-28 22:14:24 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$pop_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-p" = {
value = "$pop_port$"
description = "Port number (default: none)"
}
"-E" = {
value = "$pop_escape$"
description = "Can use \n, \r, \t or \\ in send or quit string. Must come before send or quit option. Default: nothing added to send, \r\n added to end of quit"
}
"-s" = {
value = "$pop_send$"
description = "String to send to the server"
}
"-e" = {
value = "$pop_expect$"
description = "String to expect in server response (may be repeated)"
}
2015-11-21 11:26:38 +01:00
"-A" = {
set_if = "$pop_all$"
description = "All expect strings need to occur in server response. Default is any."
}
2017-06-11 21:47:39 +02:00
"-q" = {
value = "$pop_quit$"
description = "String to send server to initiate a clean close of the connection"
}
"-r" = {
value = "$pop_refuse$"
description = "Accept TCP refusals with states ok, warn, crit (default: crit)"
}
"-M" = {
value = "$pop_mismatch$"
description = "Accept expected string mismatches with states ok, warn, crit (default: warn)"
}
2015-11-21 11:26:38 +01:00
"-j" = {
set_if = "$pop_jail$"
description = "Hide output from TCP socket."
}
2017-06-11 21:47:39 +02:00
"-m" = {
value = "$pop_maxbytes$"
description = "Close connection once more than this number of bytes are received"
}
"-d" = {
value = "$pop_delay$"
description = "Seconds to wait between sending string and polling for response"
}
"-D" = {
value = "$pop_certificate_age$"
description = "Minimum number of days a certificate has to be valid"
}
2015-11-21 11:26:38 +01:00
"-S" = {
set_if = "$pop_ssl$"
description = "Use SSL for the connection."
}
2017-06-11 21:47:39 +02:00
"-w" = {
value = "$pop_warning$"
description = "Response time to result in warning status (seconds)"
}
"-c" = {
value = "$pop_critical$"
description = "Response time to result in critical status (seconds)"
}
"-t" = {
value = "$pop_timeout$"
description = "Seconds before connection times out (default: 10)"
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$pop_ipv4$"
description = "Use IPv4 connection"
}
"-6" = {
set_if = "$pop_ipv6$"
description = "Use IPv6 connection"
}
2014-05-28 22:14:24 +02:00
}
2015-02-13 11:52:08 +01:00
vars.pop_address = "$check_address$"
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$pop_ipv4$"
vars.check_ipv6 = "$pop_ipv6$"
2014-05-28 22:14:24 +02:00
}
object CheckCommand "spop" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-05-28 22:14:24 +02:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_spop" ]
2014-05-28 22:14:24 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$spop_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-p" = {
value = "$spop_port$"
description = "Port number (default: none)"
}
"-E" = {
value = "$spop_escape$"
description = "Can use \n, \r, \t or \\ in send or quit string. Must come before send or quit option. Default: nothing added to send, \r\n added to end of quit"
}
"-s" = {
value = "$spop_send$"
description = "String to send to the server"
}
"-e" = {
value = "$spop_expect$"
description = "String to expect in server response (may be repeated)"
}
2015-11-21 11:26:38 +01:00
"-A" = {
set_if = "$spop_all$"
description = "All expect strings need to occur in server response. Default is any."
}
2017-06-11 21:47:39 +02:00
"-q" = {
value = "$spop_quit$"
description = "String to send server to initiate a clean close of the connection"
}
"-r" = {
value = "$spop_refuse$"
description = "Accept TCP refusals with states ok, warn, crit (default: crit)"
}
"-M" = {
value = "$spop_mismatch$"
description = "Accept expected string mismatches with states ok, warn, crit (default: warn)"
}
2015-11-21 11:26:38 +01:00
"-j" = {
set_if = "$spop_jail$"
description = "Hide output from TCP socket."
}
2017-06-11 21:47:39 +02:00
"-m" = {
value = "$spop_maxbytes$"
description = "Close connection once more than this number of bytes are received"
}
"-d" = {
value = "$spop_delay$"
description = "Seconds to wait between sending string and polling for response"
}
"-D" = {
value = "$spop_certificate_age$"
description = "Minimum number of days a certificate has to be valid"
}
2015-11-21 11:26:38 +01:00
"-S" = {
set_if = "$spop_ssl$"
description = "Use SSL for the connection."
}
2017-06-11 21:47:39 +02:00
"-w" = {
value = "$spop_warning$"
description = "Response time to result in warning status (seconds)"
}
"-c" = {
value = "$spop_critical$"
description = "Response time to result in critical status (seconds)"
}
"-t" = {
value = "$spop_timeout$"
description = "Seconds before connection times out (default: 10)"
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$spop_ipv4$"
description = "Use IPv4 connection"
}
"-6" = {
set_if = "$spop_ipv6$"
description = "Use IPv6 connection"
}
2014-05-28 22:14:24 +02:00
}
2015-02-13 11:52:08 +01:00
vars.spop_address = "$check_address$"
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$spop_ipv4$"
vars.check_ipv6 = "$spop_ipv6$"
2014-05-28 22:14:24 +02:00
}
2014-03-27 12:30:24 +01:00
object CheckCommand "ntp_time" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-03-27 12:30:24 +01:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_ntp_time" ]
2014-04-26 13:16:08 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$ntp_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-p" = {
value = "$ntp_port$"
description = "Port number (default: 123)"
}
2016-08-03 10:41:51 +02:00
"-q" = {
set_if = "$ntp_quiet$"
description = "Returns UNKNOWN instead of CRITICAL if offset cannot be found"
}
2017-06-11 21:47:39 +02:00
"-w" = {
value = "$ntp_warning$"
description = "Offset to result in warning status (seconds)"
}
"-c" = {
value = "$ntp_critical$"
description = "Offset to result in critical status (seconds)"
}
"-o" = {
value = "$ntp_timeoffset$"
description = "Expected offset of the ntp server relative to local server (seconds)"
}
"-t" = {
value = "$ntp_timeout$"
description = "Seconds before connection times out (default: 10)"
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$ntp_ipv4$"
description = "Use IPv4 connection"
}
"-6" = {
set_if = "$ntp_ipv6$"
description = "Use IPv6 connection"
}
2014-04-26 13:16:08 +02:00
}
2015-02-13 11:52:08 +01:00
vars.ntp_address = "$check_address$"
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$ntp_ipv4$"
vars.check_ipv6 = "$ntp_ipv6$"
2013-06-13 11:33:00 +02:00
}
2015-07-06 10:09:39 +02:00
object CheckCommand "ntp_peer" {
import "ipv4-or-ipv6"
command = [ PluginDir + "/check_ntp_peer" ]
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$ntp_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-p" = {
value = "$ntp_port$"
description = "Port number (default: 123)"
}
2017-10-16 13:59:18 +02:00
"-q" = {
set_if = "$ntp_quiet$"
description = "Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized"
}
2017-06-11 21:47:39 +02:00
"-w" = {
value = "$ntp_warning$"
description = "Offset to result in warning status (seconds)"
}
"-c" = {
value = "$ntp_critical$"
description = "Offset to result in critical status (seconds)"
}
"-W" = {
value = "$ntp_wstratum$"
description = "Warning threshold for stratum of server's synchronization peer"
}
"-C" = {
value = "$ntp_cstratum$"
description = "Critical threshold for stratum of server's synchronization peer"
}
"-j" = {
value = "$ntp_wjitter$"
description = "Warning threshold for jitter"
}
"-k" = {
value = "$ntp_cjitter$"
description = "Critical threshold for jitter"
}
"-m" = {
value = "$ntp_wsource$"
description = "Warning threshold for number of usable time sources (truechimers)"
}
"-n" = {
value = "$ntp_csource$"
description = "Critical threshold for number of usable time sources (truechimers)"
}
"-t" = {
value = "$ntp_timeout$"
description = "Seconds before connection times out (default: 10)"
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$ntp_ipv4$"
description = "Use IPv4 connection"
}
"-6" = {
set_if = "$ntp_ipv6$"
description = "Use IPv6 connection"
}
2015-07-06 10:09:39 +02:00
}
vars.ntp_address = "$check_address$"
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$ntp_ipv4$"
vars.check_ipv6 = "$ntp_ipv6$"
2015-07-06 10:09:39 +02:00
}
2014-03-27 12:30:24 +01:00
object CheckCommand "ssh" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-03-27 12:30:24 +01:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_ssh" ]
2014-04-26 18:19:12 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-p" = {
value = "$ssh_port$"
description = "Port number (default: 22)"
}
"-t" = {
value = "$ssh_timeout$"
description = "Seconds before connection times out (default: 10)"
}
2014-04-26 18:19:12 +02:00
"host" = {
value = "$ssh_address$"
skip_key = true
2014-07-21 15:09:01 +02:00
order = 1
2014-04-26 18:19:12 +02:00
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$ssh_ipv4$"
description = "Use IPv4 connection"
}
"-6" = {
set_if = "$ssh_ipv6$"
description = "Use IPv6 connection"
}
2014-04-26 18:19:12 +02:00
}
2014-04-26 13:16:08 +02:00
2015-02-13 11:52:08 +01:00
vars.ssh_address = "$check_address$"
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$ssh_ipv4$"
vars.check_ipv6 = "$ssh_ipv6$"
2013-06-13 11:33:00 +02:00
}
2014-03-27 12:30:24 +01:00
object CheckCommand "disk" {
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_disk" ]
2013-06-13 11:33:00 +02:00
2014-04-26 13:16:08 +02:00
arguments = {
2015-01-30 11:06:48 +01:00
"-w" = {
value = "$disk_wfree$"
description = "Exit with WARNING status if less than INTEGER units of disk are free or Exit with WARNING status if less than PERCENT of disk space is free"
required = true
2015-05-05 13:36:37 +02:00
order = -3
2015-01-30 11:06:48 +01:00
}
"-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
2015-05-05 13:36:37 +02:00
order = -3
2015-01-30 11:06:48 +01:00
}
"-W" = {
value = "$disk_inode_wfree$"
description = "Exit with WARNING status if less than PERCENT of inode space is free"
2017-11-03 11:07:16 +01:00
order = -3
2015-01-30 11:06:48 +01:00
}
"-K" = {
value = "$disk_inode_cfree$"
description = "Exit with CRITICAL status if less than PERCENT of inode space is free"
2017-11-03 11:07:16 +01:00
order = -3
2015-01-30 11:06:48 +01:00
}
"-p" = {
2015-02-12 09:24:28 +01:00
value = "$disk_partitions$"
2015-01-30 11:06:48 +01:00
description = "Path or partition (may be repeated)"
repeat_key = true
2015-03-09 15:11:25 +01:00
order = 1
2015-01-30 11:06:48 +01:00
}
2014-11-27 16:57:58 +01:00
"-p_old" = {
key = "-p"
value = "$disk_partition$"
2015-03-09 15:11:25 +01:00
order = 1
2014-11-27 16:57:58 +01:00
}
2015-01-30 11:06:48 +01:00
"-x" = {
value = "$disk_partitions_excluded$"
description = "Ignore device (only works if -p unspecified)"
}
2014-11-27 16:57:58 +01:00
"-x_old" = {
key = "-x"
value = "$disk_partition_excluded$"
}
2015-01-30 11:06:48 +01:00
"-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"
}
2016-02-12 10:22:15 +01:00
"-f" = {
set_if = "$disk_ignore_reserved$"
description = "Don't account root-reserved blocks into freespace in perfdata"
}
2015-01-30 11:06:48 +01:00
"-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 .*"
2017-11-03 11:07:16 +01:00
order = 1
2015-01-30 11:06:48 +01:00
}
"-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
2015-04-15 10:02:16 +02:00
order = 2
2015-01-30 11:06:48 +01:00
}
"-i" = {
value = "$disk_ignore_ereg_path$"
description = "Regular expression to ignore selected path or partition (may be repeated)"
repeat_key = true
2015-04-15 10:02:16 +02:00
order = 2
2015-01-30 11:06:48 +01:00
}
"-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)"
repeat_key = true
}
2018-12-20 10:22:59 +01:00
"-N" = {
value = "$disk_include_type$"
description = "Check only filesystems of indicated type (may be repeated)"
repeat_key = true
}
2014-04-26 13:16:08 +02:00
}
2015-03-10 18:46:27 +01:00
vars.disk_wfree = "20%"
vars.disk_cfree = "10%"
2015-01-30 11:06:48 +01:00
vars.disk_megabytes = true
2018-03-02 12:44:08 +01:00
vars.disk_exclude_type = [
"none",
"tmpfs",
"sysfs",
"proc",
"configfs",
"devtmpfs",
"devfs",
"mtmfs",
"tracefs",
"cgroup",
"fuse.gvfsd-fuse",
"fuse.gvfs-fuse-daemon",
"fdescfs",
"overlay",
2018-07-30 18:22:22 +02:00
"nsfs",
"squashfs"
2018-03-02 12:44:08 +01:00
]
2013-06-13 11:33:00 +02:00
}
2015-05-12 14:45:10 +02:00
object CheckCommand "disk_smb" {
2015-11-20 10:48:48 +01:00
command = [ PluginDir + "/check_disk_smb" ]
arguments = {
"-H" = {
value = "$disk_smb_hostname$"
description = "NetBIOS name of the server."
}
"-s" = {
value = "$disk_smb_share$"
description = "Share name to be tested."
}
"-W" = {
value = "$disk_smb_workgroup$"
description = "Workgroup or Domain used (Defaults to 'WORKGROUP' if omitted)."
}
"-a" = {
value = "$disk_smb_address$"
description = "IP-address of HOST (only necessary if HOST is in another network)."
}
"-u" = {
value = "$disk_smb_username$"
description = "Username to log in to server. (Defaults to 'guest' if omitted)."
}
"-p" = {
value = "$disk_smb_password$"
description = "Password to log in to server. (Defaults to an empty password if omitted)."
}
"-w" = {
value = "$disk_smb_wused$"
description = "Percent of used space at which a warning will be generated (Default: 85%)."
}
"-c" = {
value = "$disk_smb_cused$"
description = "Percent of used space at which a critical will be generated (Defaults: 95%)"
}
"-P" = {
value = "$disk_smb_port$"
description = "Port to be used to connect to. Some Windows boxes use 139, others 445 (Defaults to smbclient default if omitted)."
}
}
2015-05-12 14:45:10 +02:00
vars.disk_smb_wused = "85%"
vars.disk_smb_cused = "95%"
}
2014-04-12 08:18:38 +02:00
object CheckCommand "users" {
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_users" ]
2014-04-26 13:16:08 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-w" = {
value = "$users_wgreater$"
description = "Set WARNING status if more than INTEGER users are logged in"
}
"-c" = {
value = "$users_cgreater$"
description = "Set CRITICAL status if more than INTEGER users are logged in"
}
2014-04-26 13:16:08 +02:00
}
2013-06-13 11:33:00 +02:00
2014-04-26 13:16:08 +02:00
vars.users_wgreater = 20
vars.users_cgreater = 50
2013-06-13 11:33:00 +02:00
}
2014-04-26 13:16:08 +02:00
object CheckCommand "procs" {
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_procs" ]
2014-04-26 13:16:08 +02:00
2015-02-24 21:56:32 +01:00
arguments = {
"-w" = {
value = "$procs_warning$"
2017-06-11 21:47:39 +02:00
description = "Generate warning state if metric is outside this range"
2015-02-24 21:56:32 +01:00
}
"-c" = {
value = "$procs_critical$"
2017-06-11 21:47:39 +02:00
description = "Generate critical state if metric is outside this range"
2015-02-24 21:56:32 +01:00
}
"-m" = {
value = "$procs_metric$"
2017-06-11 21:47:39 +02:00
description = "Check thresholds against metric"
2015-02-24 21:56:32 +01:00
}
"-t" = {
value = "$procs_timeout$"
description = "Seconds before plugin times out"
}
"-T" = {
set_if = "$procs_traditional$"
description = "Filter own process the traditional way by PID instead of /proc/pid/exe"
}
"-s" = {
value = "$procs_state$"
description = "Only scan for processes that have one or more of the status flags you specify"
}
"-p" = {
value = "$procs_ppid$"
description = "Only scan for children of the parent process ID indicated"
}
"-z" = {
value = "$procs_vsz$"
description = "Only scan for processes with VSZ higher than indicated"
}
"-r" = {
value = "$procs_rss$"
description = "Only scan for processes with RSS higher than indicated"
}
"-P" = {
value = "$procs_pcpu$"
description = "Only scan for processes with PCPU higher than indicated"
}
"-u" = {
value = "$procs_user$"
description = "Only scan for processes with user name or ID indicated"
}
"-a" = {
value = "$procs_argument$"
description = "Only scan for processes with args that contain STRING"
}
"--ereg-argument-array" = {
value = "$procs_argument_regex$"
description = "Only scan for processes with args that contain the regex STRING"
}
"-C" = {
value = "$procs_command$"
description = "Only scan for exact matches of COMMAND (without path)"
}
"-k" = {
set_if = "$procs_nokthreads$"
description = "Only scan for non kernel threads"
}
}
vars.procs_traditional = false
vars.procs_nokthreads = false
vars.procs_warning = 250
vars.procs_critical = 400
2013-06-13 11:33:00 +02:00
}
2014-04-12 08:18:38 +02:00
object CheckCommand "swap" {
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_swap" ]
2014-04-12 08:18:38 +02:00
2014-04-26 13:16:08 +02:00
arguments = {
2016-08-09 16:59:01 +02:00
"-w" = {{
if (macro("$swap_integer$")) {
return macro("$swap_wfree$")
} else {
return macro("$swap_wfree$%")
}
}}
"-c" = {{
if (macro("$swap_integer$")) {
return macro("$swap_cfree$")
} else {
return macro("$swap_cfree$%")
}
}}
"-a" = {
set_if = "$swap_allswaps$"
2016-08-27 22:36:55 +02:00
description = "Conduct comparisons for all swap partitions, one by one"
2016-08-12 15:05:23 +02:00
}
"-n" = {
value = "$swap_noswap$"
2016-08-27 22:36:55 +02:00
description = "Resulting state when there is no swap regardless of thresholds. Possible values are \"ok\", \"warning\", \"critical\", \"unknown\". Defaults to \"critical\""
2016-08-09 16:59:01 +02:00
}
2014-04-26 13:16:08 +02:00
}
2016-10-04 13:56:27 +02:00
vars.swap_wfree = 50
vars.swap_cfree = 25
2016-08-09 16:59:01 +02:00
vars.swap_integer = false
vars.swap_allswaps = false
2014-04-12 08:18:38 +02:00
}
object CheckCommand "load" {
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_load" ]
2014-04-26 13:16:08 +02:00
arguments = {
2015-07-22 09:14:48 +02:00
"-w" = {
value = "$load_wload1$,$load_wload5$,$load_wload15$"
description = "Exit with WARNING status if load average exceeds WLOADn"
}
"-c" = {
value = "$load_cload1$,$load_cload5$,$load_cload15$"
description = "Exit with CRITICAL status if load average exceed CLOADn; the load average format is the same used by 'uptime' and 'w'"
}
"-r" = {
set_if = "$load_percpu$"
description = "Divide the load averages by the number of CPUs (when possible)"
}
2014-04-26 13:16:08 +02:00
}
2013-06-13 11:33:00 +02:00
2014-04-26 13:16:08 +02:00
vars.load_wload1 = 5.0
vars.load_wload5 = 4.0
vars.load_wload15 = 3.0
2013-06-13 11:33:00 +02:00
2014-04-26 13:16:08 +02:00
vars.load_cload1 = 10.0
vars.load_cload5 = 6.0
vars.load_cload15 = 4.0
2015-07-22 09:14:48 +02:00
vars.load_percpu = false
2013-06-13 11:33:00 +02:00
}
2014-04-12 08:18:38 +02:00
object CheckCommand "snmp" {
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_snmp" ]
2013-06-13 11:33:00 +02:00
2014-04-26 13:16:08 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$snmp_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-o" = {
value = "$snmp_oid$"
description = "Object identifier(s) or SNMP variables whose value you wish to query"
}
"-C" = {
value = "$snmp_community$"
description = "Optional community string for SNMP communication (default is 'public')"
}
"-c" = {
value = "$snmp_crit$"
description = "Critical threshold range(s)"
}
"-w" = {
value = "$snmp_warn$"
description = "Warning threshold range(s)"
}
"-s" = {
value = "$snmp_string$"
description = "Return OK state (for that OID) if STRING is an exact match"
}
"-r" = {
value = "$snmp_ereg$"
description = "Return OK state (for that OID) if extended regular expression REGEX matches"
}
"-R" = {
value = "$snmp_eregi$"
description = "Return OK state (for that OID) if case-insensitive extended REGEX matches"
}
"-l" = {
value = "$snmp_label$"
description = "Prefix label for output from plugin"
}
"-u" = {
value = "$snmp_units$"
description = "Units label(s) for output data (e.g., 'sec.')"
}
"-t" = {
value = "$snmp_timeout$"
description = "Seconds before connection times out (default: 10)"
}
"-p" = {
value = "$snmp_port$"
description = "Port number (default: 161)"
}
"-e" = {
value = "$snmp_retries$"
description = "Number of retries to be used in the requests"
}
2014-06-26 16:13:41 +02:00
"--invert-search" = {
set_if = "$snmp_invert_search$"
description = "Invert search result and return CRITICAL if found"
}
2017-06-11 21:47:39 +02:00
"-P" = {
value = "$snmp_version$"
description = "SNMP protocol version"
}
"-m" = {
value = "$snmp_miblist$"
description = "List of MIBS to be loaded (default = none if using numeric OIDs or 'ALL' for symbolic OIDs.)"
}
"--rate-multiplier" = {
value = "$snmp_rate_multiplier$"
description = "Converts rate per second. For example, set to 60 to convert to per minute"
}
2015-02-20 21:33:52 +01:00
"--rate" = {
set_if = "$snmp_rate$"
description = "Enable rate calculation"
}
2015-02-21 14:25:15 +01:00
"-n" = {
set_if = "$snmp_getnext$"
description = "Use SNMP GETNEXT instead of SNMP GET"
}
2017-08-14 17:51:23 +02:00
"--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"
}
2014-04-26 13:16:08 +02:00
}
2015-02-13 12:11:53 +01:00
vars.snmp_address = {{
var addr_v4 = macro("$address$")
var addr_v6 = macro("$address6$")
if (addr_v4) {
return addr_v4
} else {
return "udp6:[" + addr_v6 + "]"
}
}}
2014-04-26 13:16:08 +02:00
vars.snmp_community = "public"
2014-06-26 16:13:41 +02:00
vars.snmp_invert_search = false
2014-12-11 22:16:58 +01:00
vars.snmp_timeout = "10"
2013-07-30 20:45:09 +02:00
}
2013-09-30 13:17:07 +02:00
2014-06-16 00:17:07 +02:00
object CheckCommand "snmpv3" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-06-16 00:17:07 +02:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_snmp" ]
2014-06-16 00:17:07 +02:00
arguments = {
2015-08-04 14:50:40 +02:00
"-H" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
2015-08-04 14:50:40 +02:00
}
2016-10-04 09:53:12 +02:00
"-p" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_port$"
description = "Port number"
2016-10-04 09:53:12 +02:00
}
2015-08-04 14:50:40 +02:00
"-n" = {
2016-10-11 12:43:33 +02:00
set_if = "$snmpv3_getnext$"
description = "Use SNMP GETNEXT instead of SNMP GET"
2015-08-04 14:50:40 +02:00
}
"-P" = {
2016-10-11 12:43:33 +02:00
value = 3
description = "SNMP protocol version"
2015-08-04 14:50:40 +02:00
}
"-L" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_seclevel$"
description = "SNMPv3 securityLevel"
2015-08-04 14:50:40 +02:00
}
"-a" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_auth_alg$"
description = "SNMPv3 auth proto"
2015-08-04 14:50:40 +02:00
}
"-U" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_user$"
description = "SNMPv3 username"
2015-08-04 14:50:40 +02:00
}
2019-06-03 10:56:00 +02:00
"-N" = {
value = "$snmpv3_context$"
description = "SNMPv3 context"
}
2015-08-04 14:50:40 +02:00
"-A" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_auth_key$"
description = "SNMPv3 authentication password"
2015-08-04 14:50:40 +02:00
}
"-X" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_priv_key$"
description = "SNMPv3 privacy password"
2015-08-04 14:50:40 +02:00
}
"-o" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_oid$"
description = "Object identifier(s) or SNMP variables whose value you wish to query"
2015-08-04 14:50:40 +02:00
}
"-x" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_priv_alg$"
description = "SNMPv3 priv proto (default DES)"
2015-08-04 14:50:40 +02:00
}
"-w" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_warn$"
description = "Warning threshold range(s)"
2015-08-04 14:50:40 +02:00
}
"-c" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_crit$"
description = "Critical threshold range(s)"
2015-08-04 14:50:40 +02:00
}
"-s" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_string$"
description = "Return OK state (for that OID) if STRING is an exact match"
2015-08-04 14:50:40 +02:00
}
"-r" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_ereg$"
description = "Return OK state (for that OID) if extended regular expression REGEX matches"
2015-08-04 14:50:40 +02:00
}
"-R" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_eregi$"
description = "Return OK state (for that OID) if case-insensitive extended REGEX matches"
2015-08-04 14:50:40 +02:00
}
"--invert-search" = {
2016-10-11 12:43:33 +02:00
set_if = "$snmpv3_invert_search$"
description = "Invert search result and return CRITICAL if found"
2015-08-04 14:50:40 +02:00
}
"-l" = {
2016-10-11 12:43:33 +02:00
value = "$snmpv3_label$"
description = "Prefix label for output from plugin"
2015-08-04 14:50:40 +02:00
}
2016-10-04 09:53:12 +02:00
"-m" = {
value = "$snmpv3_miblist$"
description = "List of SNMP MIBs for translating OIDs between numeric and textual representation"
}
2017-06-11 21:47:39 +02:00
"-u" = {
value = "$snmpv3_units$"
description = "Units label(s) for output data (e.g., 'sec.')"
}
"--rate-multiplier" = {
value = "$snmpv3_rate_multiplier$"
description = "Converts rate per second. For example, set to 60 to convert to per minute"
}
2016-03-18 12:26:54 +01:00
"--rate" = {
set_if = "$snmpv3_rate$"
description = "Enable rate calculation"
}
2017-06-11 21:47:39 +02:00
"-t" = {
value = "$snmpv3_timeout$"
description = "Seconds before connection times out (default: 10)"
}
2014-06-16 00:17:07 +02:00
}
2015-02-13 11:52:08 +01:00
vars.snmpv3_address = "$check_address$"
2014-06-16 00:17:07 +02:00
vars.snmpv3_auth_alg = "SHA"
vars.snmpv3_priv_alg = "AES"
2015-03-31 15:04:58 +02:00
vars.snmpv3_seclevel = "authPriv"
2015-11-27 14:50:15 +01:00
vars.snmpv3_timeout = "10"
2014-06-16 00:17:07 +02:00
}
2014-04-12 08:18:38 +02:00
object CheckCommand "snmp-uptime" {
2014-04-29 10:44:09 +02:00
import "snmp"
2014-03-27 12:30:24 +01:00
2014-04-26 13:16:08 +02:00
vars.snmp_oid = "1.3.6.1.2.1.1.3.0"
2013-09-30 13:17:07 +02:00
}
2014-04-13 18:47:02 +02:00
object CheckCommand "apt" {
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_apt" ]
2015-11-06 15:24:42 +01:00
arguments = {
"--extra-opts" = {
value = "$apt_extra_opts$"
description = "Read options from an ini file."
}
"--upgrade" = {
value = "$apt_upgrade$"
description = "[Default] Perform an upgrade. If an optional OPTS argument is provided, apt-get will be run with these command line options instead of the default."
}
"--dist-upgrade" = {
value = "$apt_dist_upgrade$"
description = "Perform a dist-upgrade instead of normal upgrade. Like with -U OPTS can be provided to override the default options."
}
"--include" = {
value = "$apt_include$"
description = "Include only packages matching REGEXP. Can be specified multiple times the values will be combined together."
}
"--exclude" = {
value = "$apt_exclude$"
description = "Exclude packages matching REGEXP from the list of packages that would otherwise be included. Can be specified multiple times."
}
"--critical" = {
value = "$apt_critical$"
description = "If the full package information of any of the upgradable packages match this REGEXP, the plugin will return CRITICAL status. Can be specified multiple times."
}
"--timeout" = {
value = "$apt_timeout$"
description = "Seconds before plugin times out (default: 10)."
}
2017-02-16 10:57:59 +01:00
"--only-critical" = {
set_if = "$apt_only_critical$"
description = "Only warn about critical upgrades."
}
2018-12-05 10:13:03 +01:00
"--list" = {
set_if = "$apt_list$"
description = "List packages available for upgrade."
}
2015-11-06 15:24:42 +01:00
}
2015-11-06 15:41:54 +01:00
timeout = 5m
2014-04-13 18:47:02 +02:00
}
2014-05-12 12:25:14 +02:00
2014-05-17 13:33:57 +02:00
object CheckCommand "dhcp" {
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_dhcp" ]
2014-05-17 13:33:57 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-s" = {
value = "$dhcp_serverip$"
description = "IP address of DHCP server that we must hear from"
}
"-r" = {
value = "$dhcp_requestedip$"
description = "IP address that should be offered by at least one DHCP server"
}
"-t" = {
value = "$dhcp_timeout$"
description = "Seconds to wait for DHCPOFFER before timeout occurs"
}
"-i" = {
value = "$dhcp_interface$"
description = "Interface to to use for listening (i.e. eth0)"
}
"-m" = {
value = "$dhcp_mac$"
description = "MAC address to use in the DHCP request"
}
2014-05-17 13:33:57 +02:00
"-u" = {
set_if = "$dhcp_unicast$"
2017-06-11 21:47:39 +02:00
description = "Unicast testing: mimic a DHCP relay"
2014-05-17 13:33:57 +02:00
}
}
vars.dhcp_unicast = false
}
2014-06-16 01:03:08 +02:00
object CheckCommand "dns" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-06-16 01:03:08 +02:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_dns" ]
2014-06-16 01:03:08 +02:00
arguments = {
2015-04-21 19:02:20 +02:00
"-H" = {
value = "$dns_lookup$"
description = "The name or address you want to query."
}
"-s" = {
value = "$dns_server$"
description = "Optional DNS server you want to use for the lookup."
}
2017-03-02 15:42:30 +01:00
"-q" = {
value = "$dns_query_type$"
description = "Optional DNS record query type where TYPE =(A, AAAA, SRV, TXT, MX, ANY). The default query type is 'A' (IPv4 host entry)"
}
2015-04-21 19:02:20 +02:00
"-a" = {
value = "$dns_expected_answers$"
2021-01-09 04:13:23 +01:00
description = "Optional ip address or host you expect the DNS server to return. Host must end with a dot (.). This option can be repeated multiple times (Returns OK if any value match). If multiple addresses are returned at once: for version 2.2 and earlier of the monitoring-plugins, you have to match the whole string of addresses separated with commas (sorted alphabetically). For version 2.3 and later, you need to pass a list of strings, one for each address you want to match."
}
"-L" = {
set_if = "$dns_all_expected$"
description = "Return critical if the list of expected addresses does not match all addresses returned. Only supported in newer versions of monitoring-plugins (2.3 and later), and is needed in such versions to replicate behaviour of previous versions of the plugins. When not passed, one address is enough for success, instead of all."
2015-04-21 19:02:20 +02:00
}
2014-06-16 01:03:08 +02:00
"-A" = {
2014-06-16 08:47:54 +02:00
set_if = "$dns_authoritative$"
2017-06-08 16:45:26 +02:00
description = "Optionally expect the DNS server to be authoritative for the lookup"
}
"-n" = {
set_if = "$dns_accept_cname$"
description = "Optionally accept cname responses as a valid result to a query. The default is to ignore cname responses as part of the result"
2014-06-16 01:03:08 +02:00
}
2015-04-21 19:02:20 +02:00
"-w" = {
value = "$dns_wtime$"
description = "Return warning if elapsed time exceeds value."
}
"-c" = {
value = "$dns_ctime$"
description = "Return critical if elapsed time exceeds value."
}
"-t" = {
value = "$dns_timeout$"
description = "Seconds before connection times out. Defaults to 10."
}
2014-06-16 01:03:08 +02:00
}
2015-03-25 11:44:54 +01:00
vars.dns_lookup = "$host.name$"
2015-04-21 19:02:20 +02:00
vars.dns_timeout = 10
2014-06-16 01:03:08 +02:00
}
2014-06-22 14:21:11 +02:00
object CheckCommand "dig" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-06-22 14:21:11 +02:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_dig" ]
2014-06-22 14:21:11 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$dig_server$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-p" = {
value = "$dig_port$"
description = "Port number (default: 53)"
}
2015-10-22 14:53:11 +02:00
"-l" = {
value = "$dig_lookup$"
required = true
2017-06-11 21:47:39 +02:00
description = "Machine name to lookup"
}
"-T" = {
value = "$dig_record_type$"
description = "Record type to lookup (default: A)"
}
"-a" = {
value = "$dig_expected_address$"
description = "An address expected to be in the answer section"
}
"-A" = {
value = "$dig_arguments$"
description = "Pass STRING as argument(s) to dig"
}
"-w" = {
value = "$dig_warning$"
description = "Response time to result in warning status (seconds)"
}
"-c" = {
value = "$dig_critical$"
description = "Response time to result in critical status (seconds)"
}
"-t" = {
value = "$dig_timeout$"
description = "Seconds before connection times out (default: 10)"
2015-10-22 14:53:11 +02:00
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$dig_ipv4$"
description = "Force dig to only use IPv4 query transport"
}
"-6" = {
set_if = "$dig_ipv6$"
description = "Force dig to only use IPv6 query transport"
}
2014-06-22 14:21:11 +02:00
}
2015-02-13 11:52:08 +01:00
vars.dig_server = "$check_address$"
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$dig_ipv4$"
vars.check_ipv6 = "$dig_ipv6$"
2014-06-22 14:21:11 +02:00
}
2014-05-12 12:25:14 +02:00
object CheckCommand "nscp" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-05-12 12:25:14 +02:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_nt" ]
2014-05-12 12:25:14 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$nscp_address$"
description = "Name of the host to check"
}
"-p" = {
value = "$nscp_port$"
description = "Optional port number (default: 1248)"
}
"-s" = {
value = "$nscp_password$"
description = "Password needed for the request"
}
2014-05-22 14:05:56 +02:00
"-v" = {
value = "$nscp_variable$"
required = true
2017-06-11 21:47:39 +02:00
description = "Variable to check"
2014-05-22 14:05:56 +02:00
}
2014-11-27 16:57:58 +01:00
"-l" = {
value = "$nscp_params$"
repeat_key = false
}
2017-06-11 21:47:39 +02:00
"-w" = {
value = "$nscp_warn$"
description = "Threshold which will result in a warning status"
}
"-c" = {
value = "$nscp_crit$"
description = "Threshold which will result in a critical status"
}
"-t" = {
value = "$nscp_timeout$"
description = "Seconds before connection attempt times out"
}
2015-04-20 14:01:36 +02:00
"-d" = {
value = "SHOWALL"
set_if = "$nscp_showall$"
2017-06-11 21:47:39 +02:00
description = "Use with SERVICESTATE to see working services or PROCSTATE for running processes"
2015-04-20 14:01:36 +02:00
}
2014-05-12 12:25:14 +02:00
}
2015-02-13 11:52:08 +01:00
vars.nscp_address = "$check_address$"
2014-05-12 12:25:14 +02:00
vars.nscp_port = 12489
2015-04-20 14:01:36 +02:00
vars.nscp_showall = false
2014-05-12 12:25:14 +02:00
}
2014-05-22 14:05:56 +02:00
object CheckCommand "by_ssh" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-05-22 14:05:56 +02:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_by_ssh" ]
2014-05-22 14:05:56 +02:00
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$by_ssh_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-p" = {
value = "$by_ssh_port$"
description = "Port number (default: none)"
}
2015-08-27 08:22:35 +02:00
"-C" = {{
var command = macro("$by_ssh_command$")
var arguments = macro("$by_ssh_arguments$")
if (typeof(command) == String && !arguments) {
return command
}
var escaped_args = []
for (arg in resolve_arguments(command, arguments)) {
escaped_args.add(escape_shell_arg(arg))
}
return escaped_args.join(" ")
}}
2017-06-11 21:47:39 +02:00
"-l" = {
value = "$by_ssh_logname$"
description = "SSH user name on remote host [optional]"
}
"-i" = {
value = "$by_ssh_identity$"
description = "identity of an authorized key [optional]"
}
2014-05-22 14:05:56 +02:00
"-q" = {
set_if = "$by_ssh_quiet$"
2017-06-11 21:47:39 +02:00
description = "Tell ssh to suppress warning and diagnostic messages [optional]"
}
"-w" = {
value = "$by_ssh_warn$"
description = "Response time to result in warning status (seconds)"
}
"-c" = {
value = "$by_ssh_crit$"
description = "Response time to result in critical status (seconds)"
}
"-t" = {
value = "$by_ssh_timeout$"
description = "Seconds before connection times out (default: 10)"
2014-05-22 14:05:56 +02:00
}
2015-11-14 13:08:21 +01:00
"-o" = {
value = "$by_ssh_options$"
description = "Provide ssh options (may be repeated)"
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$by_ssh_ipv4$"
description = "Use IPv4 only"
}
"-6" = {
set_if = "$by_ssh_ipv6$"
description = "Use IPv6 only"
}
2018-01-24 20:51:43 +01:00
"-E" = {
value = "$by_ssh_skip_stderr$"
description = "Ignore all or (if specified) first n lines on STDERR [optional]"
}
2014-05-22 14:05:56 +02:00
}
2015-02-13 11:52:08 +01:00
vars.by_ssh_address = "$check_address$"
2014-05-22 14:05:56 +02:00
vars.by_ssh_quiet = false
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$by_ssh_ipv4$"
vars.check_ipv6 = "$by_ssh_ipv6$"
2014-05-22 14:05:56 +02:00
}
2014-05-22 19:08:47 +02:00
2014-05-28 23:08:32 +02:00
object CheckCommand "ups" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-05-28 23:08:32 +02:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_ups" ]
2014-05-28 23:08:32 +02:00
arguments = {
2015-03-27 12:48:45 +01:00
"-H" = {
value = "$ups_address$"
description = "Address of the upsd server"
required = true
}
"-u" = {
value = "$ups_name$"
description = "Name of the UPS to monitor"
required = true
}
"-p" = {
2015-03-27 14:29:36 +01:00
value = "$ups_port$"
2015-03-27 12:48:45 +01:00
description = "Port number (default: 3493)"
}
"-v" = {
value = "$ups_variable$"
description = "Variable to monitor, valid strings are LINE, TEMP, BATTPCT or LOADPCT"
}
"-w" = {
value = "$ups_warning$"
description = "Warning threshold for the selected variable"
}
"-c" = {
value = "$ups_critical$"
description = "Critical threshold for the selected variable"
}
"-T" = {
set_if = "$ups_celsius$"
description = "Display temperature in degrees Celsius instead of Fahrenheit"
}
"-t" = {
value = "$ups_timeout$"
description = "Seconds before the connection times out (default: 10)"
}
2014-05-28 23:08:32 +02:00
}
2015-02-13 11:52:08 +01:00
vars.ups_address = "$check_address$"
2014-05-28 23:08:32 +02:00
vars.ups_name = "ups"
}
2014-05-22 19:08:47 +02:00
object CheckCommand "nrpe" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2014-05-22 19:08:47 +02:00
2014-07-16 12:58:18 +02:00
command = [ PluginDir + "/check_nrpe" ]
2014-05-22 19:08:47 +02:00
2017-06-11 21:47:39 +02:00
arguments = {
"-H" = {
value = "$nrpe_address$"
2017-06-19 15:22:19 +02:00
description = "The address of the host running the NRPE daemon"
2017-06-11 21:47:39 +02:00
}
"-p" = {
value = "$nrpe_port$"
}
"-c" = {
value = "$nrpe_command$"
}
2014-05-22 21:06:19 +02:00
"-n" = {
set_if = "$nrpe_no_ssl$"
2017-06-19 15:22:19 +02:00
description = "Do not use SSL"
2014-05-22 21:06:19 +02:00
}
"-u" = {
set_if = "$nrpe_timeout_unknown$"
2014-05-22 19:08:47 +02:00
description = "Make socket timeouts return an UNKNOWN state instead of CRITICAL"
}
2017-06-11 21:47:39 +02:00
"-t" = {
value = "$nrpe_timeout$"
2017-06-19 15:22:19 +02:00
description = "<interval>:<state> = <Number of seconds before connection times out>:<Check state to exit with in the event of a timeout (default=CRITICAL)>"
2017-06-11 21:47:39 +02:00
}
2014-11-26 20:43:42 +01:00
"-a" = {
value = "$nrpe_arguments$"
repeat_key = false
order = 1
}
2015-09-09 20:27:14 +02:00
"-4" = {
set_if = "$nrpe_ipv4$"
2015-11-21 11:26:38 +01:00
description = "Use IPv4 connection"
2015-09-09 20:27:14 +02:00
}
"-6" = {
set_if = "$nrpe_ipv6$"
2015-11-21 11:26:38 +01:00
description = "Use IPv6 connection"
2015-09-09 20:27:14 +02:00
}
2017-04-03 18:51:55 +02:00
"-2" = {
set_if = "$nrpe_version_2$"
description = "Use this if you want to connect to NRPE v2"
}
2021-10-12 08:29:07 +02:00
"-P" = {
value = "$nrpe_payload_size$"
description = "Specify non-default payload size for NSClient++"
}
2020-03-10 14:05:08 +01:00
"-A" = {
value = "$nrpe_ca$"
description = "The CA file to use for PKI"
}
"-C" = {
value = "$nrpe_cert$"
description = "The cert file to use for PKI"
}
"-K" = {
value = "$nrpe_key$"
description = "The key file to use for PKI"
}
"-S" = {
value = "$nrpe_ssl_version$"
description = "The SSL/TLS version to use"
}
"-L" = {
value = "$nrpe_cipher_list$"
description = "The list of SSL ciphers to use"
}
"-d" = {
value = "$nrpe_dh_opt$"
description = "Anonymous Diffie Hellman use: 0 = deny, 1 = allow, 2 = force"
}
2021-09-29 09:46:55 +02:00
"-D" = {
set_if = "$nrpe_no_logging$"
description = "Disable check_nrpe plugin from logging to syslog (requires check_nrpe >= 4.0)"
}
2014-05-22 21:06:19 +02:00
}
2014-05-22 19:08:47 +02:00
2015-02-13 11:52:08 +01:00
vars.nrpe_address = "$check_address$"
2014-05-22 21:06:19 +02:00
vars.nrpe_no_ssl = false
vars.nrpe_timeout_unknown = false
2015-11-01 16:33:02 +01:00
vars.check_ipv4 = "$nrpe_ipv4$"
vars.check_ipv6 = "$nrpe_ipv6$"
2017-04-03 18:51:55 +02:00
vars.nrpe_version_2 = false
2014-11-21 22:05:03 +01:00
timeout = 5m
2014-05-22 19:08:47 +02:00
}
2015-02-02 10:57:21 +01:00
object CheckCommand "hpjd" {
2015-02-13 11:52:08 +01:00
import "ipv4-or-ipv6"
2015-02-02 10:57:21 +01:00
command = [ PluginDir + "/check_hpjd" ]
arguments = {
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$hpjd_address$"
description = "Host address"
}
"-C" = {
value = "$hpjd_community$"
description = "The SNMP community name (default=public)"
}
"-p" = {
value = "$hpjd_port$"
description = "Specify the port to check (default=161)"
}
2015-02-02 10:57:21 +01:00
}
2015-02-13 11:52:08 +01:00
vars.hpjd_address = "$check_address$"
2015-02-02 10:57:21 +01:00
}
2015-02-05 17:05:00 +01:00
object CheckCommand "icmp" {
command = [ PluginDir + "/check_icmp" ]
arguments = {
"-H" = {
value = "$icmp_address$"
repeat_key = false
order = 1
2017-06-11 21:47:39 +02:00
description = "Host address"
}
"-w" = {
value = "$icmp_wrta$,$icmp_wpl$%"
description = "warning threshold (currently 200.000ms,40%)"
}
"-c" = {
value = "$icmp_crta$,$icmp_cpl$%"
description = "critical threshold (currently 500.000ms,80%)"
}
"-s" = {
value = "$icmp_source$"
description = "specify a source IP address or device name"
}
"-n" = {
value = "$icmp_packets$"
description = "number of packets to send (currently 5)"
}
"-i" = {
value = "$icmp_packet_interval$"
description = "max packet interval (currently 80.000ms)"
}
"-I" = {
value = "$icmp_target_interval$"
description = "max target interval (currently 0.000ms)"
}
"-m" = {
value = "$icmp_hosts_alive$"
description = "number of alive hosts required for success"
}
"-b" = {
value = "$icmp_data_bytes$"
description = "Number of icmp data bytes to send. Packet size will be data bytes + icmp header (currently 68 + 8)"
}
"-t" = {
value = "$icmp_timeout$"
description = "timeout value (seconds, currently 10)"
}
"-l" = {
value = "$icmp_ttl$"
description = "TTL on outgoing packets (currently 0)"
2015-02-05 17:05:00 +01:00
}
}
vars.icmp_address = "$address$"
vars.icmp_wrta = 100
vars.icmp_wpl = 5
vars.icmp_crta = 200
vars.icmp_cpl = 15
}
2015-04-25 06:13:27 +02:00
object CheckCommand "ldap" {
2015-11-20 10:48:48 +01:00
import "ipv4-or-ipv6"
2015-04-25 06:13:27 +02:00
2015-04-25 13:35:59 +02:00
command = [ PluginDir + "/check_ldap" ]
2015-04-25 06:13:27 +02:00
arguments = {
2015-04-25 13:35:59 +02:00
"-H" = {
value = "$ldap_address$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-p" = {
value = "$ldap_port$"
description = "Port number (default: 389)"
}
"-a" = {
value = "$ldap_attr$"
description = "ldap attribute to search (default: \"(objectclass=*)\""
}
"-b" = {
value = "$ldap_base$"
required = true
description = "ldap base (eg. ou=my unit, o=my org, c=at"
}
"-D" = {
value = "$ldap_bind$"
description = "ldap bind DN (if required)"
}
"-P" = {
value = "$ldap_pass$"
description = "ldap password (if required)"
}
2015-04-25 06:13:27 +02:00
"-T" = {
set_if = "$ldap_starttls$"
2015-04-25 13:35:59 +02:00
description = "use starttls mechanism introduced in protocol version 3"
2015-04-25 06:13:27 +02:00
}
"-S" = {
set_if = "$ldap_ssl$"
2015-04-25 13:35:59 +02:00
description = "use ldaps (ldap v2 ssl method). this also sets the default port to 636"
}
"-2" = {
set_if = "$ldap_v2$"
description = "Use LDAP protocol version 2"
2015-04-25 06:13:27 +02:00
}
"-3" = {
set_if = "$ldap_v3$"
description = "Use LDAP protocol version 3"
}
2015-04-25 13:35:59 +02:00
"-w" = {
value = "$ldap_warning$"
description = "Response time to result in warning status (seconds)"
}
"-c" = {
value = "$ldap_critical$"
description = "Response time to result in critical status (seconds)"
}
2017-04-05 14:50:08 +02:00
"-W" = {
value = "$ldap_warning_entries$"
description = "Number of found entries to result in warning status (optional)"
}
"-C" = {
value = "$ldap_critical_entries$"
description = "Number of found entries to result in critical status (optional)"
}
2015-04-25 13:35:59 +02:00
"-t" = {
value = "$ldap_timeout$"
description = "Seconds before connection times out (default: 10)"
}
"-v" = {
set_if = "$ldap_verbose$"
description = "Show details for command-line debugging"
}
2015-04-25 06:13:27 +02:00
}
2015-04-25 13:35:59 +02:00
vars.ldap_address = "$check_address$"
vars.ldap_v2 = true
vars.ldap_v3 = false
vars.ldap_timeout = 10s
vars.ldap_verbose = false
2015-04-25 06:13:27 +02:00
}
2015-08-02 07:45:34 +02:00
object CheckCommand "clamd" {
command = [ PluginDir + "/check_clamd" ]
arguments = {
"-H" = {
value = "$clamd_address$"
description = "The host's address or unix socket (must be an absolute path)."
required = true
}
"-p" = {
value = "$clamd_port$"
description = "Port number (default: none)."
}
"-e" = {
value = "$clamd_expect$"
description = "String to expect in server response (may be repeated)."
repeat_key = true
}
"-A" = {
set_if = "$clamd_all$"
description = "All expect strings need to occur in server response. Default is any."
}
"-E_send" = {
key = "-E"
order = 1
set_if = "$clamd_escape_send$"
description = "Enable usage of \n, \r, \t or \\ in send string. Default is nothing."
}
"-s" = {
order = 2
value = "$clamd_send$"
description = "String to send to the server."
}
"-E_quit" = {
key = "-E"
order = 3
set_if = "$clamd_escape_quit$"
description = "Can use \n, \r, \t or \\ in quit string. Default is \r\n added to end of quit."
}
"-q" = {
order = 4
value = "$clamd_quit$"
description = "String to send server to initiate a clean close of the connection."
}
"-r" = {
value = "$clamd_refuse$"
description = "Accept TCP refusals with states ok, warn, crit. Defaults to crit."
}
"-M" = {
value = "$clamd_mismatch$"
description = "Accept expected string mismatches with states ok, warn, crit. Defaults to warn."
}
"-j" = {
set_if = "$clamd_jail$"
description = "Hide output from TCP socket."
}
"-m" = {
value = "$clamd_maxbytes$"
description = "Close connection once more than this number of bytes are received."
}
"-d" = {
value = "$clamd_delay$"
description = "Seconds to wait between sending string and polling for response."
}
"-D" = {
value = "$clamd_certificate$"
description = "Minimum number of days a certificate has to be valid. 1st value is number of days for warning, 2nd is critical (if not specified: 0) - seperated by comma."
}
"-S" = {
set_if = "$clamd_ssl$"
description = "Use SSL for the connection."
}
"-w" = {
value = "$clamd_wtime$"
description = "Response time to result in warning status (seconds)."
}
"-c" = {
value = "$clamd_ctime$"
description = "Response time to result in critical status (seconds)."
}
"-t" = {
value = "$clamd_timeout$"
description = "Seconds before connection times out. Defaults to 10."
}
2015-11-21 11:26:38 +01:00
"-4" = {
set_if = "$clamd_ipv4$"
description = "Use IPv4 only"
}
"-6" = {
set_if = "$clamd_ipv6$"
description = "Use IPv6 only"
}
2015-08-02 07:45:34 +02:00
}
vars.clamd_ssl = false
vars.clamd_refuse = "crit"
vars.clamd_mismatch = "warn"
vars.clamd_timeout = 10
2015-11-21 11:26:38 +01:00
vars.check_ipv4 = "$clamd_ipv4$"
vars.check_ipv6 = "$clamd_ipv6$"
2015-08-02 07:45:34 +02:00
}
2015-08-02 11:54:25 +02:00
object CheckCommand "mailq" {
command = [ PluginDir + "/check_mailq" ]
arguments = {
"-w" = {
value = "$mailq_warning$"
description = "Min. number of messages in queue to generate warning"
required = true
}
"-c" = {
value = "$mailq_critical$"
description = "Min. number of messages in queue to generate critical alert ( w < c )"
required = true
}
"-W" = {
value = "$mailq_domain_warning$"
description = "Min. number of messages for same domain in queue to generate warning"
}
"-C" = {
value = "$mailq_domain_critical$"
description = "Min. number of messages for same domain in queue to generate critical alert ( W < C )"
}
"-t" = {
value = "$mailq_timeout$"
description = "Plugin timeout in seconds (default = 15)"
}
"-M" = {
value = "$mailq_servertype$"
description = "[ sendmail | qmail | postfix | exim | nullmailer ] (default = autodetect)"
}
2016-10-24 14:56:38 +02:00
"-s" = {
set_if = "$mailq_sudo$"
description = "Use sudo for mailq command"
}
2015-08-02 11:54:25 +02:00
}
}
2015-09-12 20:15:36 +02:00
object CheckCommand "pgsql" {
import "ipv4-or-ipv6"
command = [ PluginDir + "/check_pgsql" ]
arguments = {
2022-01-31 11:11:00 +01:00
"--extra-opts" = {
value = "$pgsql_extra_opts$"
description = "Read options from an ini file"
}
2017-06-11 21:47:39 +02:00
"-H" = {
value = "$pgsql_hostname$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-P" = {
value = "$pgsql_port$"
description = "Port number (default: 5432)"
}
"-d" = {
value = "$pgsql_database$"
description = "Database to check (default: template1)"
}
"-l" = {
value = "$pgsql_username$"
description = "Login name of user"
}
"-p" = {
value = "$pgsql_password$"
description = "Password (BIG SECURITY ISSUE)"
}
"-o" = {
value = "$pgsql_options$"
description = "Connection parameters (keyword = value), see below"
}
"-w" = {
value = "$pgsql_warning$"
description = "Response time to result in warning status (seconds)"
}
"-c" = {
value = "$pgsql_critical$"
description = "Response time to result in critical status (seconds)"
}
"-t" = {
value = "$pgsql_timeout$"
description = "Seconds before connection times out (default: 10)"
}
"-q" = {
value = "$pgsql_query$"
description = "SQL query to run. Only first column in first row will be read"
}
"-W" = {
value = "$pgsql_query_warning$"
description = "SQL query value to result in warning status (double)"
}
"-C" = {
value = "$pgsql_query_critical$"
description = "SQL query value to result in critical status (double)"
}
2015-09-12 20:15:36 +02:00
}
vars.pgsql_hostname = "$check_address$"
}
2015-11-01 13:26:01 +01:00
object CheckCommand "mysql" {
import "ipv4-or-ipv6"
command = [ PluginDir + "/check_mysql" ]
arguments = {
2022-01-31 11:11:00 +01:00
"--extra-opts" = {
value = "$mysql_extra_opts$"
description = "Read options from an ini file"
}
2017-06-11 21:47:39 +02:00
"-H" = {
2020-05-19 17:24:21 +02:00
set_if = {{ !macro("$mysql_socket$") }}
2017-06-11 21:47:39 +02:00
value = "$mysql_hostname$"
description = "Host name, IP Address, or unix socket (must be an absolute path)"
}
"-P" = {
value = "$mysql_port$"
description = "Port number (default: 3306)"
}
2015-11-01 13:26:01 +01:00
"-n" = {
set_if = "$mysql_ignore_auth$"
2017-06-11 21:47:39 +02:00
description = "Ignore authentication failure and check for mysql connectivity only"
}
"-s" = {
value = "$mysql_socket$"
description = "Use the specified socket"
}
"-d" = {
value = "$mysql_database$"
description = "Check database with indicated name"
}
"-f" = {
value = "$mysql_file$"
description = "Read from the specified client options file"
}
"-g" = {
value = "$mysql_group$"
description = "Use a client options group"
}
"-u" = {
value = "$mysql_username$"
description = "Connect using the indicated username"
}
"-p" = {
value = "$mysql_password$"
description = "Use the indicated password to authenticate the connection"
2015-11-01 13:26:01 +01:00
}
"-S" = {
set_if = "$mysql_check_slave$"
2017-06-11 21:47:39 +02:00
description = "Check if the slave thread is running properly"
}
"-w" = {
value = "$mysql_warning$"
description = "Exit with WARNING status if slave server is more than INTEGER seconds behind master"
}
"-c" = {
value = "$mysql_critical$"
description = "Exit with CRITICAL status if slave server is more then INTEGER seconds behind master"
2015-11-01 13:26:01 +01:00
}
"-l" = {
set_if = "$mysql_ssl$"
2017-06-11 21:47:39 +02:00
description = "Use ssl encryptation"
}
"-C" = {
value = "$mysql_cacert$"
description = "Path to CA signing the cert"
}
"-a" = {
value = "$mysql_cert$"
description = "Path to SSL certificate"
}
"-k" = {
value = "$mysql_key$"
description = "Path to private SSL key"
}
"-D" = {
value = "$mysql_cadir$"
description = "Path to CA directory"
}
"-L" = {
value = "$mysql_ciphers$"
description = "List of valid SSL ciphers"
2015-11-01 13:26:01 +01:00
}
}
vars.mysql_hostname = "$check_address$"
}
2015-11-01 12:31:58 +01:00
object CheckCommand "negate" {
command = [ PluginDir + "/negate" ]
arguments = {
2017-06-19 15:22:19 +02:00
"-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$"
}
2017-07-24 08:49:16 +02:00
"-u" = {
value = "$negate_unknown$"
}
2015-11-01 12:31:58 +01:00
"-s" = {
set_if = "$negate_substitute$"
2017-06-19 15:22:19 +02:00
description = "Substitute output text as well. Will only substitute text in CAPITALS"
2015-11-01 12:31:58 +01:00
}
"--wrapped-plugin" = {
value = {{
var command = macro("$negate_command$")
var arguments = macro("$negate_arguments$")
if (typeof(command) == String && !arguments) {
return command
}
var escaped_args = []
for (arg in resolve_arguments(command, arguments)) {
escaped_args.add(arg)
}
return escaped_args.join(" ")
}}
skip_key = true
order = 1
}
}
vars.negate_timeout_result = "UNKNOWN"
}
2015-11-02 13:24:14 +01:00
object CheckCommand "file_age" {
command = [ PluginDir + "/check_file_age" ]
arguments = {
"-w" = {
value = "$file_age_warning_time$"
description = "File must be no more than this many seconds old (default: 240s)"
}
"-c" = {
value = "$file_age_critical_time$"
description = "File must be no more than this many seconds old (default: 600s)"
}
"-W" = {
value = "$file_age_warning_size$"
description = "File must be at least this many bytes long"
}
"-C" = {
value = "$file_age_critical_size$"
description = "File must be at least this many bytes long (default: 0B)"
}
"-i" = {
set_if = "$file_age_ignoremissing$"
description = "return OK if the file does not exist"
}
"-f" = {
value = "$file_age_file$"
description = "File to monitor"
}
}
vars.file_age_ignoremissing = false
}
2015-11-09 14:56:05 +01:00
object CheckCommand "smart" {
command = [ PluginDir + "/check_ide_smart" ]
arguments = {
"-d" = {
value = "$smart_device$"
description = "Name of a local hard drive to monitor"
required = true
}
}
}
2015-11-19 12:26:06 +01:00
object CheckCommand "breeze" {
import "ipv4-or-ipv6"
command = [ PluginDir + "/check_breeze" ]
arguments = {
"-H" = {
value = "$breeze_hostname$"
description = "Name or IP address of host to check"
required = true
}
"-C" = {
value = "$breeze_community$"
description = "SNMPv1 community (default public)"
}
"-w" = {
value = "$breeze_warning$"
description = "Percentage strength below which a WARNING status will result"
required = true
}
"-c" = {
value = "$breeze_critical$"
description = "Percentage strength below which a CRITICAL status will result"
required = true
}
}
vars.breeze_hostname = "$check_address$"
vars.breeze_warning = "50"
vars.breeze_critical = "20"
}
object CheckCommand "flexlm" {
command = [ PluginDir + "/check_flexlm" ]
arguments = {
"-F" = {
value = "$flexlm_licensefile$"
description = "Name of license file (usually license.dat)"
required = true
}
"-t" = {
value = "$flexlm_timeout$"
description = "Plugin time out in seconds (default = 15)"
}
}
}
object CheckCommand "game" {
import "ipv4-or-ipv6"
command = [ PluginDir + "/check_game" ]
arguments = {
"-P" = {
value = "$game_port$"
description = "Port to connect to"
}
"-t" = {
value = "$game_timeout$"
description = "Seconds before connection times out (default: 10)"
}
"-g" = {
value = "$game_gamefield$"
description = "Field number in raw qstat output that contains game name"
}
"-m" = {
value = "$game_mapfield$"
description = "Field number in raw qstat output that contains map name"
}
"-p" = {
value = "$game_pingfield$"
description = "Field number in raw qstat output that contains ping time"
}
"-G" = {
value = "$game_gametime$"
description = "Field number in raw qstat output that contains game time"
}
"-H" = {
value = "$game_hostname$"
description = "Name of the host running the game"
}
"game" = {
value = "$game_game$"
description = "Name of the game"
order = 1
skip_key = true
}
"ipaddress" = {
value = "$game_ipaddress$"
description = "Ipaddress of the game server to query"
order = 2
skip_key = true
}
}
}
2016-08-08 10:07:49 +02:00
object CheckCommand "mysql_query" {
import "ipv4-or-ipv6"
command = [ PluginDir + "/check_mysql_query" ]
arguments = {
2017-06-19 15:22:19 +02:00
"-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"
}
2016-08-08 10:07:49 +02:00
}
vars.mysql_query_hostname = "$check_address$"
}
2016-09-20 14:43:29 +02:00
object CheckCommand "radius" {
import "ipv4-or-ipv6"
command = [
PluginDir + "/check_radius",
]
arguments = {
2017-06-19 15:22:19 +02:00
"-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"
}
2016-09-20 14:43:29 +02:00
"-P" = {
value = "$radius_port$",
2017-06-19 15:22:19 +02:00
description = "Port number (default: 1645)"
2016-09-20 14:43:29 +02:00
},
"-n" = {
value = "$radius_nas_id$",
description = "NAS identifier"
}
"-N" = {
value = "$radius_nas_address$",
description = "NAS IP Address"
},
"-e" = {
value = "$radius_expect$",
description = "Response string to expect from the server"
},
"-r" = {
value = "$radius_retries$",
description = "Number of times to retry a failed connection"
},
"-t" = {
value = "$radius_timeout$",
description = "Seconds before connection times out (default: 10) Optional :<timeout state> can be a state integer (0,1,2,3) or a state STRING"
},
}
vars.radius_address = "$check_address$"
}
2016-10-10 11:42:18 +02:00
object CheckCommand "nscp_api" {
import "ipv4-or-ipv6"
command = [ PluginDir + "/check_nscp_api" ]
arguments = {
"-H" = {
value = "$nscp_api_host$"
description = "NSCP API host address"
required = true
}
"-P" = {
value = "$nscp_api_port$"
description = "NSCP API host port. Defaults to 8443."
}
"--password" = {
value = "$nscp_api_password$"
description = "NSCP API password"
}
"-q" = {
value = "$nscp_api_query$"
description = "NSCPI API Query endpoint to use"
}
"-a" = {
value = "$nscp_api_arguments$"
description = "NSCP API Query arguments"
repeat_key = true
}
}
vars.nscp_api_host = "$check_address$"
}
2017-11-22 18:26:08 +01:00
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$"
}
2019-08-22 15:03:11 +02:00
object CheckCommand "uptime" {
command = [ PluginDir + "/check_uptime" ]
arguments = {
"--warning" = {
value = "$uptime_warning$"
description = "Min. number of uptime to generate warning"
required = true
}
"--critical" = {
value = "$uptime_critical$"
description = "Min. number of uptime to generate critical alert ( w < c )"
required = true
}
"--for" = {
set_if = "$uptime_for$"
description = "Show uptime in a pretty format (Running for x weeks, x days, ...)"
}
"--since" = {
set_if = "$uptime_since$"
description = "Show last boot in yyyy-mm-dd HH:MM:SS format (output from 'uptime -s')"
}
}
vars.uptime_warning = "30m"
vars.uptime_critical = "15m"
}