| 487 | } |
| 488 | |
| 489 | void ExternalCommandProcessor::EnableSvcCheck(double, const std::vector<String>& arguments) |
| 490 | { |
| 491 | Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]); |
| 492 | |
| 493 | if (!service) |
| 494 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot enable service check for non-existent service '" + arguments[1] + "' on host '" + arguments[0] + "'")); |
| 495 | |
| 496 | Log(LogNotice, "ExternalCommandProcessor") |
| 497 | << "Enabling active checks for service '" << arguments[1] << "'"; |
| 498 | |
| 499 | service->ModifyAttribute("enable_active_checks", true); |
| 500 | } |
| 501 | |
| 502 | void ExternalCommandProcessor::DisableSvcCheck(double, const std::vector<String>& arguments) |
| 503 | { |
nothing calls this directly
no test coverage detected