2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2014-10-17 19:44:31 +02:00
|
|
|
|
2015-08-15 20:28:05 +02:00
|
|
|
#include "base/configobject.hpp"
|
2013-10-26 09:41:45 +02:00
|
|
|
|
2015-08-04 14:47:44 +02:00
|
|
|
library perfdata;
|
|
|
|
|
2013-10-26 09:41:45 +02:00
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2015-08-15 20:28:05 +02:00
|
|
|
class GraphiteWriter : ConfigObject
|
2013-10-26 09:41:45 +02:00
|
|
|
{
|
2019-02-19 14:06:15 +01:00
|
|
|
activation_priority 100;
|
2018-04-26 15:53:11 +02:00
|
|
|
|
2013-10-26 09:41:45 +02:00
|
|
|
[config] String host {
|
|
|
|
default {{{ return "127.0.0.1"; }}}
|
|
|
|
};
|
|
|
|
[config] String port {
|
|
|
|
default {{{ return "2003"; }}}
|
|
|
|
};
|
2014-10-11 20:38:24 +02:00
|
|
|
[config] String host_name_template {
|
2015-06-19 18:11:55 +02:00
|
|
|
default {{{ return "icinga2.$host.name$.host.$host.check_command$"; }}}
|
2014-10-11 20:38:24 +02:00
|
|
|
};
|
|
|
|
[config] String service_name_template {
|
2015-06-19 18:11:55 +02:00
|
|
|
default {{{ return "icinga2.$host.name$.services.$service.name$.$service.check_command$"; }}}
|
2014-10-11 20:38:24 +02:00
|
|
|
};
|
2015-10-20 08:06:25 +02:00
|
|
|
[config] bool enable_send_thresholds;
|
|
|
|
[config] bool enable_send_metadata;
|
2015-06-19 18:11:55 +02:00
|
|
|
|
2017-05-15 17:35:36 +02:00
|
|
|
[no_user_modify] bool connected;
|
|
|
|
[no_user_modify] bool should_connect {
|
|
|
|
default {{{ return true; }}}
|
|
|
|
};
|
2018-10-24 13:29:27 +02:00
|
|
|
[config] bool enable_ha {
|
2019-03-27 15:29:03 +01:00
|
|
|
default {{{ return false; }}}
|
2018-10-24 13:29:27 +02:00
|
|
|
};
|
2013-10-26 09:41:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|