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.
This commit is contained in:
Julian Brost 2022-06-24 15:08:04 +02:00 committed by Julian Brost
parent 5613412b81
commit 2a4605f4b7
1 changed files with 3 additions and 3 deletions

View File

@ -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) {