mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add in/out erros to port table (#16073)
This commit is contained in:
@@ -86,6 +86,8 @@ class PortsController extends TableController
|
|||||||
'ifDescr',
|
'ifDescr',
|
||||||
'secondsIfLastChange',
|
'secondsIfLastChange',
|
||||||
'ifConnectorPresent',
|
'ifConnectorPresent',
|
||||||
|
'ifInErrors',
|
||||||
|
'ifOutErrors',
|
||||||
'ifInErrors_delta',
|
'ifInErrors_delta',
|
||||||
'ifOutErrors_delta',
|
'ifOutErrors_delta',
|
||||||
'ifInOctets_rate',
|
'ifInOctets_rate',
|
||||||
@@ -168,6 +170,8 @@ class PortsController extends TableController
|
|||||||
'ifOutOctets_rate' => $port->ifOutOctets_rate * 8,
|
'ifOutOctets_rate' => $port->ifOutOctets_rate * 8,
|
||||||
'ifInUcastPkts_rate' => $port->ifInUcastPkts_rate,
|
'ifInUcastPkts_rate' => $port->ifInUcastPkts_rate,
|
||||||
'ifOutUcastPkts_rate' => $port->ifOutUcastPkts_rate,
|
'ifOutUcastPkts_rate' => $port->ifOutUcastPkts_rate,
|
||||||
|
'ifInErrors' => $port->ifInErrors,
|
||||||
|
'ifOutErrors' => $port->ifOutErrors,
|
||||||
'ifInErrors_delta' => $port->poll_period ? Number::formatSi($port->ifInErrors_delta / $port->poll_period, 2, 3, 'EPS') : '',
|
'ifInErrors_delta' => $port->poll_period ? Number::formatSi($port->ifInErrors_delta / $port->poll_period, 2, 3, 'EPS') : '',
|
||||||
'ifOutErrors_delta' => $port->poll_period ? Number::formatSi($port->ifOutErrors_delta / $port->poll_period, 2, 3, 'EPS') : '',
|
'ifOutErrors_delta' => $port->poll_period ? Number::formatSi($port->ifOutErrors_delta / $port->poll_period, 2, 3, 'EPS') : '',
|
||||||
'ifType' => Rewrite::normalizeIfType($port->ifType),
|
'ifType' => Rewrite::normalizeIfType($port->ifType),
|
||||||
|
@@ -58,9 +58,15 @@ if (isset($vars['errors'])) {
|
|||||||
Packets Out
|
Packets Out
|
||||||
</th>
|
</th>
|
||||||
<th data-column-id="ifInErrors_delta" data-searchable="false" data-visible="<?php echo $errors_visible ?>"
|
<th data-column-id="ifInErrors_delta" data-searchable="false" data-visible="<?php echo $errors_visible ?>"
|
||||||
data-css-class="red"<?php echo $error_sort ?>>Errors In
|
data-css-class="red"<?php echo $error_sort ?>>Errors In Rate
|
||||||
</th>
|
</th>
|
||||||
<th data-column-id="ifOutErrors_delta" data-searchable="false" data-visible="<?php echo $errors_visible ?>"
|
<th data-column-id="ifOutErrors_delta" data-searchable="false" data-visible="<?php echo $errors_visible ?>"
|
||||||
|
data-css-class="red">Errors Out Rate
|
||||||
|
</th>
|
||||||
|
<th data-column-id="ifInErrors" data-searchable="false" data-visible="<?php echo $errors_visible ?>"
|
||||||
|
data-css-class="red"<?php echo $error_sort ?>>Errors In
|
||||||
|
</th>
|
||||||
|
<th data-column-id="ifOutErrors" data-searchable="false" data-visible="<?php echo $errors_visible ?>"
|
||||||
data-css-class="red">Errors Out
|
data-css-class="red">Errors Out
|
||||||
</th>
|
</th>
|
||||||
<th data-column-id="ifType">Media</th>
|
<th data-column-id="ifType">Media</th>
|
||||||
|
Reference in New Issue
Block a user