| 2114 | } |
| 2115 | |
| 2116 | void ExternalCommandProcessor::ChangeCustomSvcVar(double, const std::vector<String>& arguments) |
| 2117 | { |
| 2118 | Service::Ptr service = Service::GetByNamePair(arguments[0], arguments[1]); |
| 2119 | |
| 2120 | if (!service) |
| 2121 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot change custom var for non-existent service '" + arguments[1] + "' on host '" + arguments[0] + "'")); |
| 2122 | |
| 2123 | Log(LogNotice, "ExternalCommandProcessor") |
| 2124 | << "Changing custom var '" << arguments[2] << "' for service '" << arguments[1] << "' on host '" |
| 2125 | << arguments[0] << "' to value '" << arguments[3] << "'"; |
| 2126 | |
| 2127 | service->ModifyAttribute("vars." + arguments[2], arguments[3]); |
| 2128 | } |
| 2129 | |
| 2130 | void ExternalCommandProcessor::ChangeCustomUserVar(double, const std::vector<String>& arguments) |
| 2131 | { |
nothing calls this directly
no test coverage detected