From 7b16c85bc10b2bad4d3091d06eb0113a817e78e3 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Mon, 27 Jun 2022 13:21:46 +0200 Subject: [PATCH] Icinga DB Check: remove markdown headings from output icingadb-web shows multiple lines from the check output collapsed into a single line. The lines containing just minuses make this look cluttered and making making it a heading provides little to no benefit. Even when rendering markdown in the check output at some point, having the lists labeled using normal paragraphs would look just fine. --- lib/icingadb/icingadbchecktask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/icingadb/icingadbchecktask.cpp b/lib/icingadb/icingadbchecktask.cpp index 8c3cd9595..25a2084b9 100644 --- a/lib/icingadb/icingadbchecktask.cpp +++ b/lib/icingadb/icingadbchecktask.cpp @@ -497,11 +497,11 @@ void IcingadbCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckR } if (!i2okmsg.empty()) { - msgbuf << "\n\nIcinga 2\n--------\n" << i2okmsg; + msgbuf << "\n\nIcinga 2:\n" << i2okmsg; } if (!idbokmsg.empty()) { - msgbuf << "\n\nIcinga DB\n---------\n" << idbokmsg; + msgbuf << "\n\nIcinga DB:\n" << idbokmsg; } cr->SetPerformanceData(perfdata);