| 1485 | } |
| 1486 | |
| 1487 | void ExternalCommandProcessor::EnableHostNotifications(double, const std::vector<String>& arguments) |
| 1488 | { |
| 1489 | Host::Ptr host = Host::GetByName(arguments[0]); |
| 1490 | |
| 1491 | if (!host) |
| 1492 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot enable host notifications for non-existent host '" + arguments[0] + "'")); |
| 1493 | |
| 1494 | Log(LogNotice, "ExternalCommandProcessor") |
| 1495 | << "Enabling notifications for host '" << arguments[0] << "'"; |
| 1496 | |
| 1497 | host->ModifyAttribute("enable_notifications", true); |
| 1498 | } |
| 1499 | |
| 1500 | void ExternalCommandProcessor::DisableHostNotifications(double, const std::vector<String>& arguments) |
| 1501 | { |
nothing calls this directly
no test coverage detected