| 1936 | } |
| 1937 | |
| 1938 | void ExternalCommandProcessor::DisableSvcEventHandler(double, const std::vector<String>& arguments) |
| 1939 | { |
| 1940 | Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]); |
| 1941 | |
| 1942 | if (!service) |
| 1943 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot disable event handler for non-existent service '" + arguments[1] + "' on host '" + arguments[0] + "'")); |
| 1944 | |
| 1945 | Log(LogNotice, "ExternalCommandProcessor") |
| 1946 | << "Disabling event handler for service '" << arguments[1] + "'"; |
| 1947 | |
| 1948 | service->ModifyAttribute("enable_event_handler", false); |
| 1949 | } |
| 1950 | |
| 1951 | void ExternalCommandProcessor::ChangeHostEventHandler(double, const std::vector<String>& arguments) |
| 1952 | { |
nothing calls this directly
no test coverage detected