| 856 | } |
| 857 | |
| 858 | void ExternalCommandProcessor::DisablePassiveSvcChecks(double, const std::vector<String>& arguments) |
| 859 | { |
| 860 | Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]); |
| 861 | |
| 862 | if (!service) |
| 863 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot disable service checks for non-existent service '" + arguments[1] + "' on host '" + arguments[0] + "'")); |
| 864 | |
| 865 | Log(LogNotice, "ExternalCommandProcessor") |
| 866 | << "Disabling passive checks for service '" << arguments[1] << "'"; |
| 867 | |
| 868 | service->ModifyAttribute("enable_passive_checks", false); |
| 869 | } |
| 870 | |
| 871 | void ExternalCommandProcessor::EnableServicegroupPassiveSvcChecks(double, const std::vector<String>& arguments) |
| 872 | { |
nothing calls this directly
no test coverage detected