| 591 | } |
| 592 | |
| 593 | void ExternalCommandProcessor::DisableHostSvcChecks(double, const std::vector<String>& arguments) |
| 594 | { |
| 595 | Host::Ptr host = Host::GetByName(arguments[0]); |
| 596 | |
| 597 | if (!host) |
| 598 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot disable host service checks for non-existent host '" + arguments[0] + "'")); |
| 599 | |
| 600 | for (const Service::Ptr& service : host->GetServices()) { |
| 601 | Log(LogNotice, "ExternalCommandProcessor") |
| 602 | << "Disabling active checks for service '" << service->GetName() << "'"; |
| 603 | |
| 604 | service->ModifyAttribute("enable_active_checks", false); |
| 605 | } |
| 606 | } |
| 607 | |
| 608 | void ExternalCommandProcessor::AcknowledgeSvcProblem(double, const std::vector<String>& arguments) |
| 609 | { |
nothing calls this directly
no test coverage detected