[icinga-checkins] icinga.org: icinga2/master: Implemented status. dat support for host acknowledgements.

git at icinga.org git at icinga.org
Sun Jan 27 11:54:53 CET 2013


Module: icinga2
Branch: master
Commit: fc782473db115e875870a31a21f8988969c354c1
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=fc782473db115e875870a31a21f8988969c354c1

Author: Gunnar Beutner <gunnar at beutner.name>
Date:   Sun Jan 27 11:54:50 2013 +0100

Implemented status.dat support for host acknowledgements.

---

 components/compat/compatcomponent.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/components/compat/compatcomponent.cpp b/components/compat/compatcomponent.cpp
index 531f04b..11187da 100644
--- a/components/compat/compatcomponent.cpp
+++ b/components/compat/compatcomponent.cpp
@@ -184,6 +184,9 @@ void CompatComponent::DumpHostStatus(ofstream& fp, const Host::Ptr& host)
 	   << "\t" << "active_checks_enabled=1" << "\n"
 	   << "\t" << "passive_checks_enabled=1" << "\n"
 	   << "\t" << "last_update=" << Utility::GetTime() << "\n"
+	   << "\t" << "problem_has_been_acknowledged=" << (host->GetAcknowledgement() != AcknowledgementNone ? 1 : 0) << "\n"
+	   << "\t" << "acknowledgement_type=" << static_cast<int>(host->GetAcknowledgement()) << "\n"
+	   << "\t" << "acknowledgement_end_time=" << host->GetAcknowledgementExpiry() << "\n"
 	   << "\t" << "}" << "\n"
 	   << "\n";
 }





More information about the icinga-checkins mailing list