2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2013-06-13 11:33:00 +02:00
|
|
|
|
2014-05-25 16:23:35 +02:00
|
|
|
#include "icinga/checkcommand.hpp"
|
2018-01-18 13:50:38 +01:00
|
|
|
#include "icinga/checkcommand-ti.cpp"
|
2015-08-15 20:28:05 +02:00
|
|
|
#include "base/configtype.hpp"
|
2013-06-13 11:33:00 +02:00
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
|
|
|
REGISTER_TYPE(CheckCommand);
|
|
|
|
|
2020-07-31 17:28:33 +02:00
|
|
|
thread_local CheckCommand::Ptr CheckCommand::ExecuteOverride;
|
|
|
|
|
2014-11-13 11:23:57 +01:00
|
|
|
void CheckCommand::Execute(const Checkable::Ptr& checkable, const CheckResult::Ptr& cr,
|
2017-12-19 15:50:05 +01:00
|
|
|
const Dictionary::Ptr& resolvedMacros, bool useResolvedMacros)
|
2013-06-13 11:33:00 +02:00
|
|
|
{
|
2017-11-30 08:19:58 +01:00
|
|
|
GetExecute()->Invoke({
|
2017-12-19 15:50:05 +01:00
|
|
|
checkable,
|
|
|
|
cr,
|
|
|
|
resolvedMacros,
|
|
|
|
useResolvedMacros
|
2017-11-30 08:19:58 +01:00
|
|
|
});
|
2013-06-13 11:33:00 +02:00
|
|
|
}
|