Publish when config_dump_in progress

This commit is contained in:
Jean Flach 2019-01-28 15:19:10 +01:00 committed by Michael Friedrich
parent 7890c37357
commit 23099904c0
1 changed files with 2 additions and 0 deletions

View File

@ -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 });