| 461 | } |
| 462 | |
| 463 | void ExternalCommandProcessor::EnableHostCheck(double, const std::vector<String>& arguments) |
| 464 | { |
| 465 | Host::Ptr host = Host::GetByName(arguments[0]); |
| 466 | |
| 467 | if (!host) |
| 468 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot enable host checks for non-existent host '" + arguments[0] + "'")); |
| 469 | |
| 470 | Log(LogNotice, "ExternalCommandProcessor") |
| 471 | << "Enabling active checks for host '" << arguments[0] << "'"; |
| 472 | |
| 473 | host->ModifyAttribute("enable_active_checks", true); |
| 474 | } |
| 475 | |
| 476 | void ExternalCommandProcessor::DisableHostCheck(double, const std::vector<String>& arguments) |
| 477 | { |
nothing calls this directly
no test coverage detected