]> granicus.if.org Git - icinga2/commitdiff
Add a type validafor for GelfWriter
authorMichael Friedrich <michael.friedrich@netways.de>
Mon, 10 Nov 2014 19:09:54 +0000 (20:09 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 11 Nov 2014 13:16:48 +0000 (14:16 +0100)
refs #7619

lib/perfdata/gelfwriter.ti
lib/perfdata/perfdata-type.conf

index 5018f705e7141237a52491d91c5cc2e84d47f5e9..a3c49ab79b003f220530d49d8576253217ba64dd 100644 (file)
@@ -30,12 +30,6 @@ class GelfWriter : DynamicObject
        [config] String port {
                default {{{ return "12201"; }}}
        };
-       [config] String host_name_template {
-               default {{{ return "icinga.$host.name$"; }}}
-       };
-       [config] String service_name_template {
-               default {{{ return "icinga.$host.name$.$service.name$"; }}}
-       };
 };
 
 }
index 011a881c1f337e3d9bb83ca1041e3319b4181d23..d5bdff5b658a039d6b57e4a819b0555d8acf94aa 100644 (file)
@@ -33,3 +33,9 @@
        %attribute %string "host_name_template",
        %attribute %string "service_name_template"
 }
+
+%type GelfWriter {
+        %attribute %string "host",
+        %attribute %string "port"
+}
+