Fix PluginOutputHookImplementation gets called twice #5271 (#5272)

This commit is contained in:
moreamazingnick 2024-10-08 09:25:02 +02:00 committed by GitHub
parent c4b6e4bdda
commit bc47867f20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,12 @@
Specific version upgrades are described below. Please note that upgrades are incremental. An upgrade from
v2.6 to v2.8 requires to follow the instructions for v2.7 too.
## Upgrading to Icinga Web 2.12.2
**Framework changes affecting third-party code**
* `Icinga\Module\Monitoring\Hook\PluginOutputHook` When rendering the Icinga check output, the output and long_output fields are now concatenated with a newline (\n) before any post-processing occurs, such as through a PluginOutputHook
## Upgrading to Icinga Web 2.12.0
**Database Schema**

View File

@ -1,5 +1,4 @@
<h2><?= $this->translate('Plugin Output') ?></h2>
<div id="check-output-<?= $this->escape(str_replace(' ', '-', $object->check_command)) ?>" class="collapsible" data-visible-height="100">
<?= $this->pluginOutput($object->output, false, $object->check_command) ?>
<?= $this->pluginOutput($object->long_output, false, $object->check_command) ?>
<?= $this->pluginOutput($object->output . "\n" . $object->long_output, false, $object->check_command) ?>
</div>