From 7bdbd2b074ee9a045926f38e993be95b25dc8c9d Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Thu, 5 Apr 2018 09:32:07 +0200 Subject: [PATCH] Deprecate Statusdatawriter refs #6033 --- doc/14-features.md | 4 +++- lib/compat/statusdatawriter.cpp | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/14-features.md b/doc/14-features.md index 7c9f661de..83f880a98 100644 --- a/doc/14-features.md +++ b/doc/14-features.md @@ -737,6 +737,9 @@ A detailed list on the available table attributes can be found in the [Livestatu ## Status Data Files +> **Note** +> This feature is deprecated and will be removed with Icinga 2.10.0 + Icinga 1.x writes object configuration data and status data in a cyclic interval to its `objects.cache` and `status.dat` files. Icinga 2 provides the `StatusDataWriter` object which dumps all configuration objects and @@ -747,7 +750,6 @@ status updates in a regular interval. If you are not using any web interface or addon which uses these files, you can safely disable this feature. - ## Compat Log Files The Icinga 1.x log format is considered being the `Compat Log` diff --git a/lib/compat/statusdatawriter.cpp b/lib/compat/statusdatawriter.cpp index dd3ef3296..c4289b366 100644 --- a/lib/compat/statusdatawriter.cpp +++ b/lib/compat/statusdatawriter.cpp @@ -77,6 +77,9 @@ void StatusDataWriter::Start(bool runtimeCreated) Log(LogInformation, "StatusDataWriter") << "'" << GetName() << "' started."; + Log(LogWarning, "StatusDataWriter") + << "The StatusDataWriter feature is deprecated and will be removed with Icinga 2.10.0"; + m_ObjectsCacheOutdated = true; m_StatusTimer = new Timer(); -- 2.40.0