From ba67c102f39dab360015f7e38ebfc4c224b30e4f Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Fri, 24 Jun 2022 15:08:04 +0200 Subject: [PATCH] Icinga DB Check: clearly state Icinga 2 Redis backlog Should make it easier to understand that this refers to Redis queries issued by Icinga 2. --- lib/icingadb/icingadbchecktask.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/icingadb/icingadbchecktask.cpp b/lib/icingadb/icingadbchecktask.cpp index e55258546..bc56363c9 100644 --- a/lib/icingadb/icingadbchecktask.cpp +++ b/lib/icingadb/icingadbchecktask.cpp @@ -289,14 +289,14 @@ void IcingadbCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckR } if (!icingaBacklogThresholds.Critical.IsEmpty() && redisBacklog > icingaBacklogThresholds.Critical) { - critmsgs << " Icinga 2 query backlog: " << Utility::FormatDuration(redisBacklog) + critmsgs << " Icinga 2 Redis backlog: " << Utility::FormatDuration(redisBacklog) << ", greater than CRITICAL threshold (" << Utility::FormatDuration(icingaBacklogThresholds.Critical) << ")!"; } else if (!icingaBacklogThresholds.Warning.IsEmpty() && redisBacklog > icingaBacklogThresholds.Warning) { - warnmsgs << " Icinga 2 query backlog: " << Utility::FormatDuration(redisBacklog) + warnmsgs << " Icinga 2 Redis backlog: " << Utility::FormatDuration(redisBacklog) << ", greater than WARNING threshold (" << Utility::FormatDuration(icingaBacklogThresholds.Warning) << ")."; } - perfdata->Add(new PerfdataValue("redis_backlog", redisBacklog, false, "seconds", + perfdata->Add(new PerfdataValue("icinga2_redis_backlog", redisBacklog, false, "seconds", icingaBacklogThresholds.Warning, icingaBacklogThresholds.Critical, 0)); if (!down) {