From 721483e0b24220417605380edaf8ebc781f2e7ca Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Mon, 10 Nov 2014 20:09:54 +0100 Subject: [PATCH] Add a type validafor for GelfWriter refs #7619 --- lib/perfdata/gelfwriter.ti | 6 ------ lib/perfdata/perfdata-type.conf | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/perfdata/gelfwriter.ti b/lib/perfdata/gelfwriter.ti index 5018f705e..a3c49ab79 100644 --- a/lib/perfdata/gelfwriter.ti +++ b/lib/perfdata/gelfwriter.ti @@ -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$"; }}} - }; }; } diff --git a/lib/perfdata/perfdata-type.conf b/lib/perfdata/perfdata-type.conf index 011a881c1..d5bdff5b6 100644 --- a/lib/perfdata/perfdata-type.conf +++ b/lib/perfdata/perfdata-type.conf @@ -33,3 +33,9 @@ %attribute %string "host_name_template", %attribute %string "service_name_template" } + +%type GelfWriter { + %attribute %string "host", + %attribute %string "port" +} + -- 2.40.0