MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ChangeCustomCheckcommandVar

Method ChangeCustomCheckcommandVar

lib/icinga/externalcommandprocessor.cpp:2143–2151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2141}
2142
2143void ExternalCommandProcessor::ChangeCustomCheckcommandVar(double, const std::vector<String>& arguments)
2144{
2145 CheckCommand::Ptr command = CheckCommand::GetByName(arguments[0]);
2146
2147 if (!command)
2148 BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot change custom var for non-existent command '" + arguments[0] + "'"));
2149
2150 ChangeCustomCommandVarInternal(command, arguments[1], arguments[2]);
2151}
2152
2153void ExternalCommandProcessor::ChangeCustomEventcommandVar(double, const std::vector<String>& arguments)
2154{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected