mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
monitoring: Use the ellipsis string helper when viewing plugin output in host and service list
This commit is contained in:
parent
a1a36301fe
commit
7580d57c1d
@ -115,7 +115,7 @@ if ($hosts->count() === 0) {
|
|||||||
array('style' => 'font-weight: normal')
|
array('style' => 'font-weight: normal')
|
||||||
) ?>)</span>
|
) ?>)</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<p class="pluginoutput"><?= $this->escape(substr($host->host_output, 0, 10000)) ?></p>
|
<p class="pluginoutput"><?= $this->escape($this->ellipsis($host->host_output, 10000)) ?></p>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach($this->extraColumns as $col): ?>
|
<?php foreach($this->extraColumns as $col): ?>
|
||||||
<td><?= $this->escape($host->$col) ?></td>
|
<td><?= $this->escape($host->$col) ?></td>
|
||||||
|
@ -112,7 +112,7 @@ foreach ($services as $service):
|
|||||||
(<?= strtoupper(Host::getStateText($service->host_state, true)); ?>)
|
(<?= strtoupper(Host::getStateText($service->host_state, true)); ?>)
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</a><?php endif ?><br />
|
</a><?php endif ?><br />
|
||||||
<p class="pluginoutput"><?= $this->escape(substr($service->service_output, 0, 10000)); ?></p>
|
<p class="pluginoutput"><?= $this->escape($this->ellipsis($service->service_output, 10000)); ?></p>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach($this->extraColumns as $col): ?>
|
<?php foreach($this->extraColumns as $col): ?>
|
||||||
<td><?= $this->escape($service->$col) ?></td>
|
<td><?= $this->escape($service->$col) ?></td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user