| 500 | } |
| 501 | |
| 502 | void ExternalCommandProcessor::DisableSvcCheck(double, const std::vector<String>& arguments) |
| 503 | { |
| 504 | Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]); |
| 505 | |
| 506 | if (!service) |
| 507 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot disable service check for non-existent service '" + arguments[1] + "' on host '" + arguments[0] + "'")); |
| 508 | |
| 509 | Log(LogNotice, "ExternalCommandProcessor") |
| 510 | << "Disabling active checks for service '" << arguments[1] << "'"; |
| 511 | |
| 512 | service->ModifyAttribute("enable_active_checks", false); |
| 513 | } |
| 514 | |
| 515 | void ExternalCommandProcessor::ShutdownProcess(double, const std::vector<String>&) |
| 516 | { |
nothing calls this directly
no test coverage detected