| 1524 | } |
| 1525 | |
| 1526 | void ExternalCommandProcessor::DisableSvcNotifications(double, const std::vector<String>& arguments) |
| 1527 | { |
| 1528 | Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]); |
| 1529 | |
| 1530 | if (!service) |
| 1531 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot disable service notifications for non-existent service '" + arguments[1] + "' on host '" + arguments[0] + "'")); |
| 1532 | |
| 1533 | Log(LogNotice, "ExternalCommandProcessor") |
| 1534 | << "Disabling notifications for service '" << arguments[1] << "'"; |
| 1535 | |
| 1536 | service->ModifyAttribute("enable_notifications", false); |
| 1537 | } |
| 1538 | |
| 1539 | void ExternalCommandProcessor::EnableHostSvcNotifications(double, const std::vector<String>& arguments) |
| 1540 | { |
nothing calls this directly
no test coverage detected