| 736 | } |
| 737 | |
| 738 | void ExternalCommandProcessor::RemoveHostAcknowledgement(double, const std::vector<String>& arguments) |
| 739 | { |
| 740 | Host::Ptr host = Host::GetByName(arguments[0]); |
| 741 | |
| 742 | if (!host) |
| 743 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot remove acknowledgement for non-existent host '" + arguments[0] + "'")); |
| 744 | |
| 745 | Log(LogNotice, "ExternalCommandProcessor") |
| 746 | << "Removing acknowledgement for host '" << host->GetName() << "'"; |
| 747 | |
| 748 | { |
| 749 | ObjectLock olock(host); |
| 750 | host->ClearAcknowledgement(""); |
| 751 | } |
| 752 | host->RemoveAckComments(); |
| 753 | } |
| 754 | |
| 755 | void ExternalCommandProcessor::EnableHostgroupSvcChecks(double, const std::vector<String>& arguments) |
| 756 | { |
nothing calls this directly
no test coverage detected