Implemented status.dat support for host acknowledgements.

This commit is contained in:
Gunnar Beutner 2013-01-27 11:54:50 +01:00
parent e10d4f6b8b
commit fc782473db
1 changed files with 3 additions and 0 deletions

View File

@ -184,6 +184,9 @@ void CompatComponent::DumpHostStatus(ofstream& fp, const Host::Ptr& host)
<< "\t" << "active_checks_enabled=1" << "\n" << "\t" << "active_checks_enabled=1" << "\n"
<< "\t" << "passive_checks_enabled=1" << "\n" << "\t" << "passive_checks_enabled=1" << "\n"
<< "\t" << "last_update=" << Utility::GetTime() << "\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" << "\t" << "}" << "\n"
<< "\n"; << "\n";
} }