| 1511 | } |
| 1512 | |
| 1513 | void ExternalCommandProcessor::EnableSvcNotifications(double, const std::vector<String>& arguments) |
| 1514 | { |
| 1515 | Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]); |
| 1516 | |
| 1517 | if (!service) |
| 1518 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot enable service notifications for non-existent service '" + arguments[1] + "' on host '" + arguments[0] + "'")); |
| 1519 | |
| 1520 | Log(LogNotice, "ExternalCommandProcessor") |
| 1521 | << "Enabling notifications for service '" << arguments[1] << "'"; |
| 1522 | |
| 1523 | service->ModifyAttribute("enable_notifications", true); |
| 1524 | } |
| 1525 | |
| 1526 | void ExternalCommandProcessor::DisableSvcNotifications(double, const std::vector<String>& arguments) |
| 1527 | { |
nothing calls this directly
no test coverage detected