/******************************************************************************
* Icinga 2 *
- * Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/) *
+ * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/) *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
vars.fping_address = "$address6$"
}
-object CheckCommand "dummy" {
- command = [ PluginDir + "/check_dummy" ]
-
- arguments = {
- "state" = {
- value = "$dummy_state$"
- skip_key = true
- order = 1
- description = "The state. Can be one of 0 (ok), 1 (warning), 2 (critical) and 3 (unknown). Defaults to 0."
- }
- "text" = {
- value = "$dummy_text$"
- skip_key = true
- order = 2
- description = "Plugin output. Defaults to Check was successful."
- }
- }
-
- vars.dummy_state = 0
- vars.dummy_text = "Check was successful."
-}
-
-object CheckCommand "passive" {
- import "dummy"
-
- vars.dummy_state = 3
- vars.dummy_text = "No Passive Check Result Received."
-}
-
object CheckCommand "tcp" {
import "ipv4-or-ipv6"
vars.ssl_port = 443
vars.ssl_cert_valid_days_warn = false
vars.ssl_cert_valid_days_critical = false
- vars.ssl_sni = "$ssl_address$"
}
value = "$ntp_port$"
description = "Port number (default: 123)"
}
+ "-q" = {
+ set_if = "$ntp_quiet$"
+ description = "Returns UNKNOWN instead of CRITICAL or WARNING if server isn't synchronized"
+ }
"-w" = {
value = "$ntp_warning$"
description = "Offset to result in warning status (seconds)"
"-W" = {
value = "$disk_inode_wfree$"
description = "Exit with WARNING status if less than PERCENT of inode space is free"
+ order = -3
}
"-K" = {
value = "$disk_inode_cfree$"
description = "Exit with CRITICAL status if less than PERCENT of inode space is free"
+ order = -3
}
"-p" = {
value = "$disk_partitions$"
"-A" = {
set_if = "$disk_all$"
description = "Explicitly select all paths. This is equivalent to -R .*"
+ order = 1
}
"-R" = {
value = "$disk_eregi_path$"
vars.disk_wfree = "20%"
vars.disk_cfree = "10%"
vars.disk_megabytes = true
- vars.disk_exclude_type = [ "none", "tmpfs", "sysfs", "proc", "configfs", "devtmpfs", "devfs", "mtmfs", "tracefs", "cgroup", "fuse.gvfsd-fuse", "fuse.gvfs-fuse-daemon", "fdescfs" ]
+ vars.disk_exclude_type = [
+ "none",
+ "tmpfs",
+ "sysfs",
+ "proc",
+ "configfs",
+ "devtmpfs",
+ "devfs",
+ "mtmfs",
+ "tracefs",
+ "cgroup",
+ "fuse.gvfsd-fuse",
+ "fuse.gvfs-fuse-daemon",
+ "fdescfs",
+ "overlay",
+ "nsfs"
+ ]
}
object CheckCommand "disk_smb" {
set_if = "$by_ssh_ipv6$"
description = "Use IPv6 only"
}
+ "-E" = {
+ value = "$by_ssh_skip_stderr$"
+ description = "Ignore all or (if specified) first n lines on STDERR [optional]"
+ }
}
vars.by_ssh_address = "$check_address$"
vars.nscp_api_host = "$check_address$"
}
+
+object CheckCommand "rpc" {
+ import "ipv4-or-ipv6"
+
+ command = [ PluginDir + "/check_rpc" ]
+
+ arguments = {
+ "-H" = {
+ value = "$rpc_address$"
+ description = "RPC host address"
+ required = true
+ }
+ "-C" = {
+ value = "$rpc_command$"
+ description = "Programm name (or number)"
+ required = true
+ }
+ "-p" = {
+ value = "$rpc_port$"
+ description = "RPC port"
+ }
+ "-c" = {
+ value = "$rpc_version$"
+ description = "The version to check"
+ }
+ "-u" = {
+ set_if = "$rpc_udp$"
+ description = "Test UDP"
+ }
+ "-t" = {
+ set_if = "$rpc_tcp$"
+ description = "Test TCP"
+ }
+ "-v" = {
+ set_if = "$rpc_verbose$"
+ description = "Show verbose details"
+ }
+ }
+
+ vars.rpc_address = "$check_address$"
+}