diff --git a/lib/icinga/cib.cpp b/lib/icinga/cib.cpp index 1ea4233dd..e8724c571 100644 --- a/lib/icinga/cib.cpp +++ b/lib/icinga/cib.cpp @@ -312,8 +312,8 @@ void CIB::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr& perfdata) { status->Set("min_latency", scs.min_latency); status->Set("max_latency", scs.max_latency); status->Set("avg_latency", scs.avg_latency); - status->Set("min_execution_time", scs.min_latency); - status->Set("max_execution_time", scs.max_latency); + status->Set("min_execution_time", scs.min_execution_time); + status->Set("max_execution_time", scs.max_execution_time); status->Set("avg_execution_time", scs.avg_execution_time); ServiceStatistics ss = CalculateServiceStats(); diff --git a/lib/methods/icingachecktask.cpp b/lib/methods/icingachecktask.cpp index 89642a39d..d39705d51 100644 --- a/lib/methods/icingachecktask.cpp +++ b/lib/methods/icingachecktask.cpp @@ -68,8 +68,8 @@ void IcingaCheckTask::ScriptFunc(const Checkable::Ptr& service, const CheckResul perfdata->Add(new PerfdataValue("min_latency", scs.min_latency)); perfdata->Add(new PerfdataValue("max_latency", scs.max_latency)); perfdata->Add(new PerfdataValue("avg_latency", scs.avg_latency)); - perfdata->Add(new PerfdataValue("min_execution_time", scs.min_latency)); - perfdata->Add(new PerfdataValue("max_execution_time", scs.max_latency)); + perfdata->Add(new PerfdataValue("min_execution_time", scs.min_execution_time)); + perfdata->Add(new PerfdataValue("max_execution_time", scs.max_execution_time)); perfdata->Add(new PerfdataValue("avg_execution_time", scs.avg_execution_time)); ServiceStatistics ss = CIB::CalculateServiceStats();