mirror of https://github.com/Icinga/icinga2.git
Remove duplicate last_check runtime macro
Already available as {host,service}.last_check attribute. refs #11483
This commit is contained in:
parent
039461e218
commit
b4c56e5f47
|
@ -300,9 +300,6 @@ bool Host::ResolveMacro(const String& macro, const CheckResult::Ptr&, Value *res
|
|||
} else if (macro == "perfdata") {
|
||||
*result = PluginUtility::FormatPerfdata(cr->GetPerformanceData());
|
||||
return true;
|
||||
} else if (macro == "last_check") {
|
||||
*result = cr->GetScheduleStart();
|
||||
return true;
|
||||
} else if (macro == "check_source") {
|
||||
*result = cr->GetCheckSource();
|
||||
return true;
|
||||
|
|
|
@ -230,9 +230,6 @@ bool Service::ResolveMacro(const String& macro, const CheckResult::Ptr& cr, Valu
|
|||
} else if (macro == "perfdata") {
|
||||
*result = PluginUtility::FormatPerfdata(cr->GetPerformanceData());
|
||||
return true;
|
||||
} else if (macro == "last_check") {
|
||||
*result = cr->GetExecutionEnd();
|
||||
return true;
|
||||
} else if (macro == "check_source") {
|
||||
*result = cr->GetCheckSource();
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue