monitoring: Respect whitespace characters in the plugin output in list views

fixes #10786
This commit is contained in:
Eric Lippmann 2016-02-23 16:06:43 +01:00
parent 18e3884b8b
commit 35754fbe8e
4 changed files with 4 additions and 9 deletions

View File

@ -86,9 +86,7 @@ if (! $this->compact): ?>
<?php endif ?> <?php endif ?>
<span class="state-icons"><?= implode(' ', $this->hostFlags($host)) ?></span> <span class="state-icons"><?= implode(' ', $this->hostFlags($host)) ?></span>
</div> </div>
<p class="overview-plugin-output"> <p class="overview-plugin-output"><?= $this->pluginOutput($this->ellipsis($host->host_output, 10000), true) ?></p>
<?= $this->pluginOutput($this->ellipsis($host->host_output, 10000), true) ?>
</p>
</td> </td>
<?php foreach($this->addColumns as $col): ?> <?php foreach($this->addColumns as $col): ?>
<td><?= $this->escape($host->$col) ?></td> <td><?= $this->escape($host->$col) ?></td>

View File

@ -70,9 +70,7 @@ if (! $this->compact): ?>
</div> </div>
<?php endif ?> <?php endif ?>
</div> </div>
<p class="overview-plugin-output"> <p class="overview-plugin-output"><?= $this->pluginOutput($this->ellipsis($notification->notification_output, 10000), true) ?></p>
<?= $this->pluginOutput($this->ellipsis($notification->notification_output, 10000), true) ?>
</p>
</td> </td>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>

View File

@ -90,9 +90,7 @@ if (! $this->compact): ?>
<div class="overview-performance-data"> <div class="overview-performance-data">
<?= $this->perfdata($service->service_perfdata, true, 5) ?> <?= $this->perfdata($service->service_perfdata, true, 5) ?>
</div> </div>
<p class="overview-plugin-output"> <p class="overview-plugin-output"><?= $this->pluginOutput($this->ellipsis($service->service_output, 10000), true) ?></p>
<?= $this->pluginOutput($this->ellipsis($service->service_output, 10000), true) ?>
</p>
</div> </div>
</td> </td>
<?php foreach($this->addColumns as $col): ?> <?php foreach($this->addColumns as $col): ?>

View File

@ -77,6 +77,7 @@
font-family: @font-family-fixed; font-family: @font-family-fixed;
font-size: @font-size-small; font-size: @font-size-small;
margin: 0; margin: 0;
white-space: pre-wrap;
} }
// Table for performance data in detail views // Table for performance data in detail views