From: Jean Flach Date: Thu, 5 Apr 2018 07:32:07 +0000 (+0200) Subject: Deprecate Statusdatawriter X-Git-Tag: v2.9.0~106^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7bdbd2b074ee9a045926f38e993be95b25dc8c9d;p=icinga2 Deprecate Statusdatawriter refs #6033 --- 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();