Merge pull request #8613 from Icinga/bugfix/ido-built-in-checkcommand-overrides-crit-with-warn-state

IdoCheckTask: Don't override checkable critical with warn state
This commit is contained in:
Alexander Aleksandrovič Klimov 2021-01-28 14:26:10 +01:00 committed by GitHub
commit 32cae11175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,8 +181,10 @@ void IdoCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckResult
msgbuf << " " << pendingQueries << " pending queries greater than warning threshold (" msgbuf << " " << pendingQueries << " pending queries greater than warning threshold ("
<< pendingQueriesWarning << " queries)."; << pendingQueriesWarning << " queries).";
if (state == ServiceOK) {
state = ServiceWarning; state = ServiceWarning;
} }
}
cr->SetPerformanceData(new Array({ cr->SetPerformanceData(new Array({
{ new PerfdataValue("queries", qps, false, "", queriesWarning, queriesCritical) }, { new PerfdataValue("queries", qps, false, "", queriesWarning, queriesCritical) },