| 1404 | } |
| 1405 | |
| 1406 | void ExternalCommandProcessor::DelAllSvcComments(double, const std::vector<String>& arguments) |
| 1407 | { |
| 1408 | Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]); |
| 1409 | |
| 1410 | if (!service) |
| 1411 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot delete all service comments for non-existent service '" + arguments[1] + "' on host '" + arguments[0] + "'")); |
| 1412 | |
| 1413 | Log(LogNotice, "ExternalCommandProcessor") |
| 1414 | << "Removing all comments for service " << service->GetName(); |
| 1415 | service->RemoveAllComments(); |
| 1416 | } |
| 1417 | |
| 1418 | void ExternalCommandProcessor::SendCustomHostNotification(double, const std::vector<String>& arguments) |
| 1419 | { |
nothing calls this directly
no test coverage detected