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"
|
2014-05-25 10:23:35 -04:00
|
|
|
#include "base/application.hpp"
|
2013-10-26 03:41:45 -04:00
|
|
|
|
2015-08-04 08:47:44 -04:00
|
|
|
library compat;
|
|
|
|
|
|
2013-10-26 03:41:45 -04:00
|
|
|
namespace icinga
|
|
|
|
|
{
|
|
|
|
|
|
2015-08-15 14:28:05 -04:00
|
|
|
class StatusDataWriter : ConfigObject
|
2013-10-26 03:41:45 -04:00
|
|
|
{
|
2018-04-26 09:53:11 -04:00
|
|
|
activation_priority 100;
|
|
|
|
|
|
2013-10-26 03:41:45 -04:00
|
|
|
[config] String status_path {
|
2018-08-09 09:37:23 -04:00
|
|
|
default {{{ return Configuration::CacheDir + "/status.dat"; }}}
|
2013-10-26 03:41:45 -04:00
|
|
|
};
|
|
|
|
|
[config] String objects_path {
|
2018-08-09 09:37:23 -04:00
|
|
|
default {{{ return Configuration::CacheDir + "/objects.cache"; }}}
|
2013-10-26 03:41:45 -04:00
|
|
|
};
|
2013-12-05 04:00:20 -05:00
|
|
|
[config] double update_interval {
|
|
|
|
|
default {{{ return 15; }}}
|
|
|
|
|
};
|
2013-10-26 03:41:45 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|