Deprecate Statusdatawriter

refs #6033
This commit is contained in:
Jean Flach 2018-04-05 09:32:07 +02:00
parent e08231f4df
commit 7bdbd2b074
2 changed files with 6 additions and 1 deletions

View File

@ -737,6 +737,9 @@ A detailed list on the available table attributes can be found in the [Livestatu
## Status Data Files <a id="status-data"></a> ## Status Data Files <a id="status-data"></a>
> **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 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 interval to its `objects.cache` and `status.dat` files. Icinga 2 provides
the `StatusDataWriter` object which dumps all configuration objects and 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, If you are not using any web interface or addon which uses these files,
you can safely disable this feature. you can safely disable this feature.
## Compat Log Files <a id="compat-logging"></a> ## Compat Log Files <a id="compat-logging"></a>
The Icinga 1.x log format is considered being the `Compat Log` The Icinga 1.x log format is considered being the `Compat Log`

View File

@ -77,6 +77,9 @@ void StatusDataWriter::Start(bool runtimeCreated)
Log(LogInformation, "StatusDataWriter") Log(LogInformation, "StatusDataWriter")
<< "'" << GetName() << "' started."; << "'" << GetName() << "' started.";
Log(LogWarning, "StatusDataWriter")
<< "The StatusDataWriter feature is deprecated and will be removed with Icinga 2.10.0";
m_ObjectsCacheOutdated = true; m_ObjectsCacheOutdated = true;
m_StatusTimer = new Timer(); m_StatusTimer = new Timer();