Skip to content

Commit

Permalink
Fix PluginOutputHookImplementation gets called twice #5271 (#5272)
Browse files Browse the repository at this point in the history
  • Loading branch information
moreamazingnick authored Oct 8, 2024
1 parent c4b6e4b commit bc47867
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions doc/80-Upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit bc47867

Please sign in to comment.