Merge pull request #6198 from Icinga/deprecate-statusdatawriter

Deprecate Statusdatawriter
This commit is contained in:
Michael Friedrich 2018-04-05 15:32:32 +02:00 committed by GitHub
commit 8eec0487bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>
> **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 <a id="compat-logging"></a>
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")
<< "'" << 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();