1 /******************************************************************************
3 * Copyright (C) 2012-2018 Icinga Development Team (https://icinga.com/) *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License *
7 * as published by the Free Software Foundation; either version 2 *
8 * of the License, or (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the Free Software Foundation *
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ******************************************************************************/
20 object CheckCommand "logstash" {
23 command = [ PluginContribDir + "/check_logstash" ]
27 value = "$logstash_hostname$"
28 description = "Hostname where Logstash is running"
31 value = "$logstash_port$"
32 description = "Port where Logstash is listening for API requests"
34 "--file-descriptor-threshold-warn" = {
35 value = "$logstash_filedesc_warn$"
36 description = "Warning threshold of file descriptor usage in percent"
38 "--file-descriptor-threshold-crit" = {
39 value = "$logstash_filedesc_crit$"
40 description = "Critical threshold of file descriptor usage in percent"
42 "--heap-usage-threshold-warn" = {
43 value = "$logstash_heap_warn$"
44 description = "Warning threshold of heap usage in percent"
46 "--heap-usage-threshold-crit" = {
47 value = "$logstash_heap_crit$"
48 description = "Critical threshold of heap usage in percent"
50 "--inflight-events-warn" = {
51 value = "$logstash_inflight_warn$"
52 description = "Warning threshold of inflight events"
54 "--inflight-events-crit" = {
55 value = "$logstash_inflight_crit$"
56 description = "Critical threshold of inflight events"
58 "--cpu-usage-threshold-warn" = {
59 value = "$logstash_cpu_warn$"
60 description = "Warning threshold for cpu usage in percent"
62 "--cpu-usage-threshold-crit" = {
63 value = "$logstash_cpu_crit$"
64 description = "Critical threshold for cpu usage in percent"
68 vars.logstash_hostname = "$check_address$"
69 vars.logstash_port = 9600
70 vars.logstash_filedesc_warn = 85
71 vars.logstash_filedesc_crit = 95
72 vars.logstash_heap_warn = 70
73 vars.logstash_heap_crit = 80