Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate Statusdatawriter #6198

Merged
merged 1 commit into from
Apr 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion doc/14-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`
Expand Down
3 changes: 3 additions & 0 deletions lib/compat/statusdatawriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down