| 1740 | } |
| 1741 | |
| 1742 | void ExternalCommandProcessor::DisableSvcFlapping(double, const std::vector<String>& arguments) |
| 1743 | { |
| 1744 | Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]); |
| 1745 | |
| 1746 | if (!service) |
| 1747 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot disable service flapping for non-existent service '" + arguments[1] + "' on host '" + arguments[0] + "'")); |
| 1748 | |
| 1749 | Log(LogNotice, "ExternalCommandProcessor") |
| 1750 | << "Disabling flapping detection for service '" << arguments[1] << "'"; |
| 1751 | |
| 1752 | service->ModifyAttribute("enable_flapping", false); |
| 1753 | } |
| 1754 | |
| 1755 | void ExternalCommandProcessor::EnableNotifications(double, const std::vector<String>&) |
| 1756 | { |
nothing calls this directly
no test coverage detected