2019-05-24 16:25:32 +02:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
|
|
|
|
2017-09-07 15:11:57 +02:00
|
|
|
#include "base/configobject.hpp"
|
|
|
|
|
|
|
|
library perfdata;
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2017-11-09 14:05:10 +01:00
|
|
|
class ElasticsearchWriter : ConfigObject
|
2017-09-07 15:11:57 +02:00
|
|
|
{
|
2019-02-19 14:06:15 +01:00
|
|
|
activation_priority 100;
|
2018-04-26 15:53:11 +02:00
|
|
|
|
2017-09-07 15:11:57 +02:00
|
|
|
[config, required] String host {
|
|
|
|
default {{{ return "127.0.0.1"; }}}
|
|
|
|
};
|
|
|
|
[config, required] String port {
|
|
|
|
default {{{ return "9200"; }}}
|
|
|
|
};
|
|
|
|
[config, required] String index {
|
|
|
|
default {{{ return "icinga2"; }}}
|
|
|
|
};
|
|
|
|
[config] bool enable_send_perfdata {
|
|
|
|
default {{{ return false; }}}
|
|
|
|
};
|
2017-09-11 17:00:33 +02:00
|
|
|
[config] String username;
|
|
|
|
[config] String password;
|
2017-09-07 15:11:57 +02:00
|
|
|
|
2017-09-11 17:28:41 +02:00
|
|
|
[config] bool enable_tls {
|
|
|
|
default {{{ return false; }}}
|
|
|
|
};
|
|
|
|
[config] String ca_path;
|
|
|
|
[config] String cert_path;
|
|
|
|
[config] String key_path;
|
|
|
|
|
2017-09-07 15:11:57 +02:00
|
|
|
[config] int flush_interval {
|
|
|
|
default {{{ return 10; }}}
|
|
|
|
};
|
|
|
|
[config] int flush_threshold {
|
|
|
|
default {{{ return 1024; }}}
|
|
|
|
};
|
2018-10-24 13:20:03 +02:00
|
|
|
[config] bool enable_ha {
|
2019-03-27 15:29:03 +01:00
|
|
|
default {{{ return false; }}}
|
2018-10-24 13:20:03 +02:00
|
|
|
};
|
2017-09-07 15:11:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|