2013-10-26 09:41:45 +02:00
|
|
|
#include "base/dynamicobject.h"
|
|
|
|
#include "base/application.h"
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
class PerfdataWriter : DynamicObject
|
|
|
|
{
|
|
|
|
[config] String perfdata_path {
|
2013-11-17 20:01:23 +01:00
|
|
|
default {{{ return Application::GetLocalStateDir() + "/spool/icinga2/perfdata/perfdata"; }}}
|
2013-10-26 09:41:45 +02:00
|
|
|
};
|
2013-11-21 07:17:34 +01:00
|
|
|
[config] String temp_path {
|
|
|
|
default {{{ return Application::GetLocalStateDir() + "/spool/icinga2/tmp/perfdata"; }}}
|
|
|
|
};
|
2013-10-26 09:41:45 +02:00
|
|
|
[config] String format_template {
|
|
|
|
default {{{
|
|
|
|
return "DATATYPE::SERVICEPERFDATA\t"
|
|
|
|
"TIMET::$TIMET$\t"
|
|
|
|
"HOSTNAME::$HOSTNAME$\t"
|
|
|
|
"SERVICEDESC::$SERVICEDESC$\t"
|
|
|
|
"SERVICEPERFDATA::$SERVICEPERFDATA$\t"
|
|
|
|
"SERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\t"
|
|
|
|
"HOSTSTATE::$HOSTSTATE$\t"
|
|
|
|
"HOSTSTATETYPE::$HOSTSTATETYPE$\t"
|
|
|
|
"SERVICESTATE::$SERVICESTATE$\t"
|
|
|
|
"SERVICESTATETYPE::$SERVICESTATETYPE$";
|
|
|
|
}}}
|
|
|
|
};
|
|
|
|
|
|
|
|
[config] double rotation_interval {
|
|
|
|
default {{{ return 30; }}}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|