From 31c7dfee53cdd5c72572f379f6d90fc373ace62e Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Fri, 24 Jun 2022 14:48:31 +0200 Subject: [PATCH] Icinga DB Check: fix error message on Redis query error Not only XREAD queries are performed, so the previous error message was incorrect. --- lib/icingadb/icingadbchecktask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icingadb/icingadbchecktask.cpp b/lib/icingadb/icingadbchecktask.cpp index 5c3a43e32..9ac3831ac 100644 --- a/lib/icingadb/icingadbchecktask.cpp +++ b/lib/icingadb/icingadbchecktask.cpp @@ -134,7 +134,7 @@ void IcingadbCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckR } catch (const std::exception& ex) { ReportIcingadbCheck( 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; }