Add a type validafor for GelfWriter

refs #7619
This commit is contained in:
Michael Friedrich 2014-11-10 20:09:54 +01:00
parent a4ed44247e
commit 721483e0b2
2 changed files with 6 additions and 6 deletions

View 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$"; }}}
};
};
}

View File

@ -33,3 +33,9 @@
%attribute %string "host_name_template",
%attribute %string "service_name_template"
}
%type GelfWriter {
%attribute %string "host",
%attribute %string "port"
}