Icinga DB Check: fix error message on Redis query error

Not only XREAD queries are performed, so the previous error message was incorrect.
This commit is contained in:
Julian Brost 2022-06-24 14:48:31 +02:00
parent 153d5bae00
commit 3391a234b3

View File

@ -134,7 +134,7 @@ void IcingadbCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckR
} catch (const std::exception& ex) { } catch (const std::exception& ex) {
ReportIcingadbCheck( ReportIcingadbCheck(
checkable, commandObj, cr, checkable, commandObj, cr,
String("Icinga DB CRITICAL: Could not read XREAD responses from Redis: ") + ex.what(), ServiceCritical String("Icinga DB CRITICAL: Could not query Redis: ") + ex.what(), ServiceCritical
); );
return; return;
} }