mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Global search: search device display (#13583)
* Global search: search device display Add display field to search (also port_desc_descr, portName, and bgpPeerDescr) Rewrite backend update typeahead bundle update devices and ports indexes reduce some port field sizes so we can index them * Style fixes * remove nonsense
This commit is contained in:
@@ -26,7 +26,7 @@ if ($width > '500') {
|
||||
$descr = \LibreNMS\Data\Store\Rrd::fixedSafeDescr(short_hrDeviceDescr($mempool['mempool_descr']), $descr_len);
|
||||
|
||||
$perc = round($mempool['mempool_perc'], 0);
|
||||
$background = \LibreNMS\Util\Colors::percentage($perc, $mempool['mempool_perc_warn']);
|
||||
$background = \LibreNMS\Util\Color::percentage($perc, $mempool['mempool_perc_warn']);
|
||||
|
||||
$rrd_options .= " DEF:{$mempool['mempool_id']}used=$rrd_filename:used:AVERAGE";
|
||||
$rrd_options .= " DEF:{$mempool['mempool_id']}free=$rrd_filename:free:AVERAGE";
|
||||
|
@@ -35,7 +35,7 @@ $descr = \LibreNMS\Data\Store\Rrd::fixedSafeDescr(short_hrDeviceDescr($component
|
||||
|
||||
$perc = $components['memory_used'] * 100 / $components['memory_total'];
|
||||
|
||||
$background = \LibreNMS\Util\Colors::percentage($perc, 75);
|
||||
$background = \LibreNMS\Util\Color::percentage($perc, 75);
|
||||
|
||||
$rrd_options .= " DEF:qfp_used=$rrd_filename:InUse:AVERAGE";
|
||||
$rrd_options .= " DEF:qfp_free=$rrd_filename:Free:AVERAGE";
|
||||
|
@@ -20,7 +20,7 @@ $descr = \LibreNMS\Data\Store\Rrd::fixedSafeDescr($storage['storage_descr'], 16)
|
||||
|
||||
$percentage = round($storage['storage_perc'], 0);
|
||||
|
||||
$background = \LibreNMS\Util\Colors::percentage($percentage, $storage['storage_perc_warn']);
|
||||
$background = \LibreNMS\Util\Color::percentage($percentage, $storage['storage_perc_warn']);
|
||||
|
||||
$rrd_options .= " DEF:used=$rrd_filename:used:AVERAGE";
|
||||
$rrd_options .= " DEF:free=$rrd_filename:free:AVERAGE";
|
||||
|
@@ -14,7 +14,7 @@ if ($colour['left'] == null) {
|
||||
|
||||
$descr = \LibreNMS\Data\Store\Rrd::safeDescr(substr(str_pad($toner['supply_descr'], 26), 0, 26));
|
||||
|
||||
$background = \LibreNMS\Util\Colors::percentage((100 - $toner['supply_current']));
|
||||
$background = \LibreNMS\Util\Color::percentage((100 - $toner['supply_current']));
|
||||
|
||||
$rrd_options .= ' DEF:toner' . $toner['supply_id'] . '=' . $rrd_filename . ':toner:AVERAGE ';
|
||||
|
||||
|
Reference in New Issue
Block a user