2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2015-08-04 14:47:44 +02:00
|
|
|
|
2015-08-15 20:28:05 +02:00
|
|
|
#include "base/configobject.hpp"
|
2015-01-28 10:57:34 +01:00
|
|
|
|
2015-08-04 14:47:44 +02:00
|
|
|
library perfdata;
|
|
|
|
|
2015-01-28 10:57:34 +01:00
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2015-08-15 20:28:05 +02:00
|
|
|
class OpenTsdbWriter : ConfigObject
|
2015-01-28 10:57:34 +01:00
|
|
|
{
|
2019-02-19 14:06:15 +01:00
|
|
|
activation_priority 100;
|
2018-04-26 15:53:11 +02:00
|
|
|
|
2015-01-28 10:57:34 +01:00
|
|
|
[config] String host {
|
|
|
|
default {{{ return "127.0.0.1"; }}}
|
|
|
|
};
|
|
|
|
[config] String port {
|
|
|
|
default {{{ return "4242"; }}}
|
|
|
|
};
|
2018-10-24 13:55:19 +02:00
|
|
|
[config] bool enable_ha {
|
2019-03-27 15:29:03 +01:00
|
|
|
default {{{ return false; }}}
|
2018-10-24 13:55:19 +02:00
|
|
|
};
|
2019-07-23 15:28:42 +02:00
|
|
|
[config] Dictionary::Ptr host_template {
|
|
|
|
default {{{ return new Dictionary(); }}}
|
|
|
|
|
|
|
|
};
|
|
|
|
[config] Dictionary::Ptr service_template {
|
|
|
|
default {{{ return new Dictionary(); }}}
|
|
|
|
};
|
2019-10-23 14:58:27 +02:00
|
|
|
[config] bool enable_generic_metrics {
|
|
|
|
default {{{ return false; }}}
|
|
|
|
};
|
2019-05-27 15:09:26 +02:00
|
|
|
|
|
|
|
[no_user_modify] bool connected;
|
|
|
|
[no_user_modify] bool should_connect {
|
|
|
|
default {{{ return true; }}}
|
|
|
|
};
|
2015-01-28 10:57:34 +01:00
|
|
|
};
|
|
|
|
|
2019-07-23 15:28:42 +02:00
|
|
|
validator OpenTsdbWriter {
|
|
|
|
Dictionary host_template {
|
2019-10-23 14:58:27 +02:00
|
|
|
String metric;
|
2019-07-23 15:28:42 +02:00
|
|
|
Dictionary "tags" {
|
|
|
|
String "*";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
Dictionary service_template {
|
2019-10-23 14:58:27 +02:00
|
|
|
String metric;
|
2019-07-23 15:28:42 +02:00
|
|
|
Dictionary "tags" {
|
|
|
|
String "*";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-28 10:57:34 +01:00
|
|
|
}
|