1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #include "base/configobject.hpp"
4 #include "base/application.hpp"
11 class PerfdataWriter : ConfigObject
13 activation_priority 100;
15 [config] String host_perfdata_path {
16 default {{{ return Configuration::SpoolDir + "/perfdata/host-perfdata"; }}}
18 [config] String service_perfdata_path {
19 default {{{ return Configuration::SpoolDir + "/perfdata/service-perfdata"; }}}
21 [config] String host_temp_path {
22 default {{{ return Configuration::SpoolDir + "/tmp/host-perfdata"; }}}
24 [config] String service_temp_path {
25 default {{{ return Configuration::SpoolDir + "/tmp/service-perfdata"; }}}
27 [config] String host_format_template {
29 return "DATATYPE::HOSTPERFDATA\t"
30 "TIMET::$host.last_check$\t"
31 "HOSTNAME::$host.name$\t"
32 "HOSTPERFDATA::$host.perfdata$\t"
33 "HOSTCHECKCOMMAND::$host.check_command$\t"
34 "HOSTSTATE::$host.state$\t"
35 "HOSTSTATETYPE::$host.state_type$";
38 [config] String service_format_template {
40 return "DATATYPE::SERVICEPERFDATA\t"
41 "TIMET::$service.last_check$\t"
42 "HOSTNAME::$host.name$\t"
43 "SERVICEDESC::$service.name$\t"
44 "SERVICEPERFDATA::$service.perfdata$\t"
45 "SERVICECHECKCOMMAND::$service.check_command$\t"
46 "HOSTSTATE::$host.state$\t"
47 "HOSTSTATETYPE::$host.state_type$\t"
48 "SERVICESTATE::$service.state$\t"
49 "SERVICESTATETYPE::$service.state_type$";
53 [config] double rotation_interval {
54 default {{{ return 30; }}}
56 [config] bool enable_ha {
57 default {{{ return false; }}}