2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2016-10-31 16:51:58 +01:00
|
|
|
|
|
|
|
object CheckCommand "logstash" {
|
2017-06-09 17:14:44 +02:00
|
|
|
import "ipv4-or-ipv6"
|
2017-06-12 08:21:36 +02:00
|
|
|
|
2016-10-31 16:51:58 +01:00
|
|
|
command = [ PluginContribDir + "/check_logstash" ]
|
2016-11-24 09:39:49 +01:00
|
|
|
|
2016-10-31 16:51:58 +01:00
|
|
|
arguments = {
|
|
|
|
"-H" = {
|
|
|
|
value = "$logstash_hostname$"
|
|
|
|
description = "Hostname where Logstash is running"
|
|
|
|
}
|
|
|
|
"-p" = {
|
|
|
|
value = "$logstash_port$"
|
|
|
|
description = "Port where Logstash is listening for API requests"
|
|
|
|
}
|
|
|
|
"--file-descriptor-threshold-warn" = {
|
|
|
|
value = "$logstash_filedesc_warn$"
|
|
|
|
description = "Warning threshold of file descriptor usage in percent"
|
|
|
|
}
|
|
|
|
"--file-descriptor-threshold-crit" = {
|
|
|
|
value = "$logstash_filedesc_crit$"
|
|
|
|
description = "Critical threshold of file descriptor usage in percent"
|
|
|
|
}
|
|
|
|
"--heap-usage-threshold-warn" = {
|
|
|
|
value = "$logstash_heap_warn$"
|
|
|
|
description = "Warning threshold of heap usage in percent"
|
|
|
|
}
|
|
|
|
"--heap-usage-threshold-crit" = {
|
|
|
|
value = "$logstash_heap_crit$"
|
|
|
|
description = "Critical threshold of heap usage in percent"
|
|
|
|
}
|
|
|
|
"--inflight-events-warn" = {
|
|
|
|
value = "$logstash_inflight_warn$"
|
|
|
|
description = "Warning threshold of inflight events"
|
|
|
|
}
|
|
|
|
"--inflight-events-crit" = {
|
|
|
|
value = "$logstash_inflight_crit$"
|
|
|
|
description = "Critical threshold of inflight events"
|
|
|
|
}
|
|
|
|
"--cpu-usage-threshold-warn" = {
|
|
|
|
value = "$logstash_cpu_warn$"
|
|
|
|
description = "Warning threshold for cpu usage in percent"
|
|
|
|
}
|
|
|
|
"--cpu-usage-threshold-crit" = {
|
|
|
|
value = "$logstash_cpu_crit$"
|
|
|
|
description = "Critical threshold for cpu usage in percent"
|
|
|
|
}
|
|
|
|
}
|
2017-06-12 08:21:36 +02:00
|
|
|
|
2016-10-31 16:51:58 +01:00
|
|
|
vars.logstash_hostname = "$check_address$"
|
|
|
|
vars.logstash_port = 9600
|
|
|
|
vars.logstash_filedesc_warn = 85
|
|
|
|
vars.logstash_filedesc_crit = 95
|
|
|
|
vars.logstash_heap_warn = 70
|
|
|
|
vars.logstash_heap_crit = 80
|
|
|
|
}
|