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"
|
2020-10-19 06:31:57 -04:00
|
|
|
#include <cstdint>
|
2013-10-26 03:41:45 -04:00
|
|
|
|
2015-08-04 08:47:44 -04:00
|
|
|
library remote;
|
|
|
|
|
|
2013-10-26 03:41:45 -04:00
|
|
|
namespace icinga
|
|
|
|
|
{
|
|
|
|
|
|
2015-08-15 14:28:05 -04:00
|
|
|
class Endpoint : ConfigObject
|
2013-10-26 03:41:45 -04:00
|
|
|
{
|
2016-08-16 07:53:45 -04:00
|
|
|
load_after Zone;
|
|
|
|
|
|
2013-10-26 03:41:45 -04:00
|
|
|
[config] String host;
|
2015-08-25 11:06:08 -04:00
|
|
|
[config, required] String port {
|
2014-05-03 14:02:22 -04:00
|
|
|
default {{{ return "5665"; }}}
|
|
|
|
|
};
|
|
|
|
|
[config] double log_duration {
|
|
|
|
|
default {{{ return 86400; }}}
|
|
|
|
|
};
|
2013-10-26 03:41:45 -04:00
|
|
|
|
2016-06-21 05:29:12 -04:00
|
|
|
[state] Timestamp local_log_position;
|
|
|
|
|
[state] Timestamp remote_log_position;
|
2020-04-03 05:10:08 -04:00
|
|
|
[state] "unsigned long" icinga_version {
|
|
|
|
|
default {{{ return 0; }}}
|
|
|
|
|
};
|
2020-10-19 06:31:57 -04:00
|
|
|
[state] uint_fast64_t capabilities {
|
|
|
|
|
default {{{ return 0; }}}
|
|
|
|
|
};
|
2013-10-26 03:41:45 -04:00
|
|
|
|
2015-10-20 02:20:35 -04:00
|
|
|
[no_user_modify] bool connecting;
|
|
|
|
|
[no_user_modify] bool syncing;
|
2015-10-22 04:52:38 -04:00
|
|
|
|
|
|
|
|
[no_user_modify, no_storage] bool connected {
|
|
|
|
|
get;
|
|
|
|
|
};
|
2017-11-13 10:30:29 -05:00
|
|
|
|
|
|
|
|
Timestamp last_message_sent;
|
|
|
|
|
Timestamp last_message_received;
|
|
|
|
|
|
|
|
|
|
[no_user_modify, no_storage] double messages_sent_per_second {
|
|
|
|
|
get;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
[no_user_modify, no_storage] double messages_received_per_second {
|
|
|
|
|
get;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
[no_user_modify, no_storage] double bytes_sent_per_second {
|
|
|
|
|
get;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
[no_user_modify, no_storage] double bytes_received_per_second {
|
|
|
|
|
get;
|
|
|
|
|
};
|
2013-10-26 03:41:45 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|