2013-10-26 09:41:45 +02:00
|
|
|
#include "base/dynamicobject.h"
|
|
|
|
#include "base/application.h"
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2013-11-11 11:57:25 +01:00
|
|
|
class LivestatusListener : DynamicObject {
|
2013-10-26 09:41:45 +02:00
|
|
|
[config] String socket_type {
|
|
|
|
default {{{ return "unix"; }}}
|
|
|
|
};
|
|
|
|
[config] String socket_path {
|
|
|
|
default {{{ return Application::GetLocalStateDir() + "/run/icinga2/cmd/livestatus"; }}}
|
|
|
|
};
|
|
|
|
[config] String bind_host {
|
|
|
|
default {{{ return "127.0.0.1"; }}}
|
|
|
|
};
|
|
|
|
[config] String bind_port {
|
|
|
|
default {{{ return "6558"; }}}
|
|
|
|
};
|
2013-11-07 14:04:13 +01:00
|
|
|
[config] String compat_log_path {
|
|
|
|
default {{{ return Application::GetLocalStateDir() + "/log/icinga2/compat"; }}}
|
|
|
|
};
|
2013-10-26 09:41:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|