mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
parent
282386e122
commit
dcbe7e1dfd
@ -158,6 +158,11 @@ Value ApiListener::ConfigUpdateHandler(const MessageOrigin& origin, const Dictio
|
|||||||
if (!origin.FromZone || !Zone::GetLocalZone()->IsChildOf(origin.FromZone))
|
if (!origin.FromZone || !Zone::GetLocalZone()->IsChildOf(origin.FromZone))
|
||||||
return Empty;
|
return Empty;
|
||||||
|
|
||||||
|
ApiListener::Ptr listener = ApiListener::GetInstance();
|
||||||
|
|
||||||
|
if (!listener || !listener->GetAcceptConfig())
|
||||||
|
return Empty;
|
||||||
|
|
||||||
Dictionary::Ptr update = params->Get("update");
|
Dictionary::Ptr update = params->Get("update");
|
||||||
|
|
||||||
bool configChange = false;
|
bool configChange = false;
|
||||||
|
@ -16,6 +16,8 @@ class ApiListener : DynamicObject
|
|||||||
default {{{ return "5665"; }}}
|
default {{{ return "5665"; }}}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
[config] bool accept_config;
|
||||||
|
|
||||||
[state] double log_message_timestamp;
|
[state] double log_message_timestamp;
|
||||||
|
|
||||||
String identity;
|
String identity;
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
%attribute %string "bind_host",
|
%attribute %string "bind_host",
|
||||||
%attribute %string "bind_port",
|
%attribute %string "bind_port",
|
||||||
|
|
||||||
|
%attribute %number "accept_config"
|
||||||
}
|
}
|
||||||
|
|
||||||
%type Endpoint {
|
%type Endpoint {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user