icinga2/itl/plugins-contrib.d/logmanagement.conf

73 lines
3.0 KiB
Plaintext

/******************************************************************************
* Icinga 2 *
* Copyright (C) 2012-2017 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 *
* as published by the Free Software Foundation; either version 2 *
* of the License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software Foundation *
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
object CheckCommand "logstash" {
command = [ PluginContribDir + "/check_logstash" ]
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"
}
}
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
}