From 23099904c011b2880bd2356c340c0a1b0992aa76 Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Mon, 28 Jan 2019 15:19:10 +0100 Subject: [PATCH] Publish when config_dump_in progress --- lib/redis/rediswriter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/redis/rediswriter.cpp b/lib/redis/rediswriter.cpp index 076ad86ff..ed5a48b6a 100644 --- a/lib/redis/rediswriter.cpp +++ b/lib/redis/rediswriter.cpp @@ -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 });