| 817 | } |
| 818 | |
| 819 | void ExternalCommandProcessor::EnablePassiveHostChecks(double, const std::vector<String>& arguments) |
| 820 | { |
| 821 | Host::Ptr host = Host::GetByName(arguments[0]); |
| 822 | |
| 823 | if (!host) |
| 824 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot enable passive host checks for non-existent host '" + arguments[0] + "'")); |
| 825 | |
| 826 | Log(LogNotice, "ExternalCommandProcessor") |
| 827 | << "Enabling passive checks for host '" << arguments[0] << "'"; |
| 828 | |
| 829 | host->ModifyAttribute("enable_passive_checks", true); |
| 830 | } |
| 831 | |
| 832 | void ExternalCommandProcessor::DisablePassiveHostChecks(double, const std::vector<String>& arguments) |
| 833 | { |
nothing calls this directly
no test coverage detected