| 884 | } |
| 885 | |
| 886 | void ExternalCommandProcessor::DisableServicegroupPassiveSvcChecks(double, const std::vector<String>& arguments) |
| 887 | { |
| 888 | ServiceGroup::Ptr sg = ServiceGroup::GetByName(arguments[0]); |
| 889 | |
| 890 | if (!sg) |
| 891 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot disable servicegroup passive service checks for non-existent servicegroup '" + arguments[0] + "'")); |
| 892 | |
| 893 | for (const Service::Ptr& service : sg->GetMembers()) { |
| 894 | Log(LogNotice, "ExternalCommandProcessor") |
| 895 | << "Disabling passive checks for service '" << service->GetName() << "'"; |
| 896 | |
| 897 | service->ModifyAttribute("enable_passive_checks", false); |
| 898 | } |
| 899 | } |
| 900 | |
| 901 | void ExternalCommandProcessor::EnableHostgroupPassiveSvcChecks(double, const std::vector<String>& arguments) |
| 902 | { |
nothing calls this directly
no test coverage detected