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.
This commit is contained in:
Julian Brost 2022-06-27 13:21:46 +02:00 committed by Julian Brost
parent c59d44cd8b
commit 953e113465

View File

@ -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);