mirror of https://github.com/Icinga/icinga2.git
Publish when config_dump_in progress
This commit is contained in:
parent
7890c37357
commit
23099904c0
|
@ -121,6 +121,7 @@ void RedisWriter::TryToReconnect()
|
|||
|
||||
/* Config dump */
|
||||
m_ConfigDumpInProgress = true;
|
||||
PublishStats();
|
||||
|
||||
UpdateAllConfigObjects();
|
||||
|
||||
|
@ -224,6 +225,7 @@ void RedisWriter::PublishStats()
|
|||
return;
|
||||
|
||||
Dictionary::Ptr status = GetStats();
|
||||
status->Set("config_dump_in_progress", m_ConfigDumpInProgress);
|
||||
String jsonStats = JsonEncode(status);
|
||||
|
||||
m_Rcon->ExecuteQuery({ "PUBLISH", "icinga:stats", jsonStats });
|
||||
|
|
Loading…
Reference in New Issue