Deprecate IcingaStatusWriter feature

fixes #8741
This commit is contained in:
Michael Friedrich 2015-09-14 10:36:06 +02:00
parent 2063012457
commit fcf2f0ef5d
3 changed files with 9 additions and 0 deletions

View File

@ -555,6 +555,10 @@ Configuration Attributes:
## <a id="objecttype-icingastatuswriter"></a> IcingaStatusWriter ## <a id="objecttype-icingastatuswriter"></a> IcingaStatusWriter
> **Note**
>
> This feature was deprecated in 2.4 and will be removed in future releases.
The IcingaStatusWriter feature periodically dumps the current status The IcingaStatusWriter feature periodically dumps the current status
and performance data from Icinga 2 and all registered features into and performance data from Icinga 2 and all registered features into
a defined JSON file. a defined JSON file.

View File

@ -4,5 +4,7 @@
* all registered features into a defined JSON file. * all registered features into a defined JSON file.
*/ */
/* NOTE: This feature was deprecated in 2.4 and will be removed in future releases. */
object IcingaStatusWriter "icinga-status" { } object IcingaStatusWriter "icinga-status" { }

View File

@ -60,6 +60,9 @@ void IcingaStatusWriter::Start(void)
{ {
ObjectImpl<IcingaStatusWriter>::Start(); ObjectImpl<IcingaStatusWriter>::Start();
/* TODO: remove in versions > 2.4 */
Log(LogWarning, "IcingaStatusWriter", "This feature was deprecated in 2.4 and will be removed in future Icinga 2 releases.");
m_StatusTimer = new Timer(); m_StatusTimer = new Timer();
m_StatusTimer->SetInterval(GetUpdateInterval()); m_StatusTimer->SetInterval(GetUpdateInterval());
m_StatusTimer->OnTimerExpired.connect(boost::bind(&IcingaStatusWriter::StatusTimerHandler, this)); m_StatusTimer->OnTimerExpired.connect(boost::bind(&IcingaStatusWriter::StatusTimerHandler, this));