Add {active,passive}_checks_{1,5,15}min to icinga check perfdata.

Fixes #5649
This commit is contained in:
Michael Friedrich 2014-02-13 12:06:32 +01:00
parent 2be318b93a
commit 48a06d3335
1 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,13 @@ CheckResult::Ptr IcingaCheckTask::ScriptFunc(const Service::Ptr&)
perfdata->Set("active_checks", CIB::GetActiveChecksStatistics(interval) / interval);
perfdata->Set("passive_checks", CIB::GetPassiveChecksStatistics(interval) / interval);
perfdata->Set("active_checks_1min", CIB::GetActiveChecksStatistics(60));
perfdata->Set("passive_checks_1min", CIB::GetPassiveChecksStatistics(60));
perfdata->Set("active_checks_5min", CIB::GetActiveChecksStatistics(60 * 5));
perfdata->Set("passive_checks_5min", CIB::GetPassiveChecksStatistics(60 * 5));
perfdata->Set("active_checks_15min", CIB::GetActiveChecksStatistics(60 * 15));
perfdata->Set("passive_checks_15min", CIB::GetPassiveChecksStatistics(60 * 15));
ServiceCheckStatistics scs = CIB::CalculateServiceCheckStats();
perfdata->Set("min_latency", scs.min_latency);