| 1714 | } |
| 1715 | |
| 1716 | void ExternalCommandProcessor::DisableHostFlapping(double, const std::vector<String>& arguments) |
| 1717 | { |
| 1718 | Host::Ptr host = Host::GetByName(arguments[0]); |
| 1719 | |
| 1720 | if (!host) |
| 1721 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot disable host flapping for non-existent host '" + arguments[0] + "'")); |
| 1722 | |
| 1723 | Log(LogNotice, "ExternalCommandProcessor") |
| 1724 | << "Disabling flapping detection for host '" << arguments[0] << "'"; |
| 1725 | |
| 1726 | host->ModifyAttribute("enable_flapping", false); |
| 1727 | } |
| 1728 | |
| 1729 | void ExternalCommandProcessor::EnableSvcFlapping(double, const std::vector<String>& arguments) |
| 1730 | { |
nothing calls this directly
no test coverage detected