| 830 | } |
| 831 | |
| 832 | void ExternalCommandProcessor::DisablePassiveHostChecks(double, const std::vector<String>& arguments) |
| 833 | { |
| 834 | Host::Ptr host = Host::GetByName(arguments[0]); |
| 835 | |
| 836 | if (!host) |
| 837 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot disable passive host checks for non-existent host '" + arguments[0] + "'")); |
| 838 | |
| 839 | Log(LogNotice, "ExternalCommandProcessor") |
| 840 | << "Disabling passive checks for host '" << arguments[0] << "'"; |
| 841 | |
| 842 | host->ModifyAttribute("enable_passive_checks", false); |
| 843 | } |
| 844 | |
| 845 | void ExternalCommandProcessor::EnablePassiveSvcChecks(double, const std::vector<String>& arguments) |
| 846 | { |
nothing calls this directly
no test coverage detected