icinga2/lib/icinga/icingastatuswriter.ti
Michael Friedrich d3cdbb5156 Implement IcingaStatusWriter object dumping local and feature stats.
Refactored the cluster listener health check too.

Refs #5622
Refs #5444
2014-02-17 18:51:16 +01:00

18 lines
324 B
Plaintext

#include "base/dynamicobject.h"
#include "base/application.h"
namespace icinga
{
class IcingaStatusWriter : DynamicObject
{
[config] String status_path {
default {{{ return Application::GetLocalStateDir() + "/cache/icinga2/status.json"; }}}
};
[config] double update_interval {
default {{{ return 15; }}}
};
};
}