mirror of https://github.com/Icinga/icinga2.git
parent
2063012457
commit
fcf2f0ef5d
|
@ -555,6 +555,10 @@ Configuration Attributes:
|
|||
|
||||
## <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
|
||||
and performance data from Icinga 2 and all registered features into
|
||||
a defined JSON file.
|
||||
|
|
|
@ -4,5 +4,7 @@
|
|||
* 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" { }
|
||||
|
||||
|
|
|
@ -60,6 +60,9 @@ void IcingaStatusWriter::Start(void)
|
|||
{
|
||||
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->SetInterval(GetUpdateInterval());
|
||||
m_StatusTimer->OnTimerExpired.connect(boost::bind(&IcingaStatusWriter::StatusTimerHandler, this));
|
||||
|
|
Loading…
Reference in New Issue