| 802 | } |
| 803 | |
| 804 | void ExternalCommandProcessor::DisableServicegroupSvcChecks(double, const std::vector<String>& arguments) |
| 805 | { |
| 806 | ServiceGroup::Ptr sg = ServiceGroup::GetByName(arguments[0]); |
| 807 | |
| 808 | if (!sg) |
| 809 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot disable servicegroup service checks for non-existent servicegroup '" + arguments[0] + "'")); |
| 810 | |
| 811 | for (const Service::Ptr& service : sg->GetMembers()) { |
| 812 | Log(LogNotice, "ExternalCommandProcessor") |
| 813 | << "Disabling active checks for service '" << service->GetName() << "'"; |
| 814 | |
| 815 | service->ModifyAttribute("enable_active_checks", false); |
| 816 | } |
| 817 | } |
| 818 | |
| 819 | void ExternalCommandProcessor::EnablePassiveHostChecks(double, const std::vector<String>& arguments) |
| 820 | { |
nothing calls this directly
no test coverage detected