]> granicus.if.org Git - icinga2/blobdiff - itl/plugins-contrib.d/logmanagement.conf
Indentation: space to tab
[icinga2] / itl / plugins-contrib.d / logmanagement.conf
index af18835a16f217626c22be5c8759ba98b0a183be..4b5c5a9a474c4725a50c064454a1567102bd9877 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * Icinga 2                                                                   *
- * Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/)  *
+ * Copyright (C) 2012-2018 Icinga Development Team (https://icinga.com/)      *
  *                                                                            *
  * This program is free software; you can redistribute it and/or              *
  * modify it under the terms of the GNU General Public License                *
@@ -18,6 +18,8 @@
  ******************************************************************************/
 
 object CheckCommand "logstash" {
+       import "ipv4-or-ipv6"
+
        command = [ PluginContribDir + "/check_logstash" ]
 
        arguments = {
@@ -61,8 +63,8 @@ object CheckCommand "logstash" {
                        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