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