mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-07 05:44:28 +02:00
IdoCheckTask: Don't override checkable critical with warn state
This commit is contained in:
parent
9219f68c83
commit
3e5dfa9607
@ -181,8 +181,10 @@ void IdoCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckResult
|
||||
msgbuf << " " << pendingQueries << " pending queries greater than warning threshold ("
|
||||
<< pendingQueriesWarning << " queries).";
|
||||
|
||||
if (state == ServiceOK) {
|
||||
state = ServiceWarning;
|
||||
}
|
||||
}
|
||||
|
||||
cr->SetPerformanceData(new Array({
|
||||
{ new PerfdataValue("queries", qps, false, "", queriesWarning, queriesCritical) },
|
||||
|
Loading…
x
Reference in New Issue
Block a user