0 || $port['ifOutErrors_delta'] > 0) { $error_img = generate_port_link($port, "", 'port_errors'); } else { $error_img = ''; } echo " "; echo ' ' . generate_port_link($port, $port['ifIndex'] . '. ' . $port['label']) . '
' . \LibreNMS\Util\Clean::html($port['ifAlias'], []) . ''; if ($port['ifAlias']) { echo '
'; } $break = ''; if ($port_details) { foreach (Ipv4Address::where('port_id', (string) $port['port_id']) as $ip) { echo "$break " . $ip['ipv4_address'] . '/' . $ip['ipv4_prefixlen'] . ''; $break = ','; } foreach (Ipv6Address::where('port_id', (string) $port['port_id']) as $ip6) { echo "$break " . IP::parse($ip6['ipv6_address'], true) . '/' . $ip6['ipv6_prefixlen'] . ''; $break = ','; } } echo ''; $width = '120'; $height = '40'; $from = Config::get('time.day'); echo ''; echo \LibreNMS\Util\Number::formatSi($port['ifInOctets_rate'] * 8, 2, 3, 'bps') . " " . \LibreNMS\Util\Number::formatSi($port['ifOutOctets_rate'] * 8, 2, 3, 'bps'); echo '
'; $port['graph_type'] = 'port_bits'; echo generate_port_link( $port, "", $port['graph_type'] ); echo ''; echo '' . \LibreNMS\Util\Number::formatSi($port['xdsl2ChStatusActDataRateXtur'], 2, 3, 'bps') . '/' . \LibreNMS\Util\Number::formatSi($port['xdsl2ChStatusActDataRateXtuc'], 2, 3, 'bps'); echo '
'; $port['graph_type'] = 'port_vdsl_speed'; echo generate_port_link( $port, "", $port['graph_type'] ); echo ''; echo '' . \LibreNMS\Util\Number::formatSi($port['xdsl2LineStatusAttainableRateDs'], 2, 3, 'bps') . '/' . \LibreNMS\Util\Number::formatSi($port['xdsl2LineStatusAttainableRateUs'], 2, 3, 'bps'); echo '
'; $port['graph_type'] = 'port_vdsl_attainable'; echo generate_port_link( $port, "", $port['graph_type'] ); echo ''; //echo '' . $port['adslAturCurrAtn'] . 'dB/' . $port['adslAtucCurrAtn'] . 'dB'; //echo '
'; //$port['graph_type'] = 'port_adsl_attenuation'; //echo generate_port_link( // $port, // "", // $port['graph_type'] //); echo ''; //echo '' . $port['adslAturCurrSnrMgn'] . 'dB/' . $port['adslAtucCurrSnrMgn'] . 'dB'; //echo '
'; //$port['graph_type'] = 'port_adsl_snr'; //echo generate_port_link( // $port, // "", // $port['graph_type'] //); echo ''; echo '' . $port['xdsl2LineStatusActAtpDs'] . 'dBm/' . $port['xdsl2LineStatusActAtpUs'] . 'dBm'; echo '
'; $port['graph_type'] = 'port_vdsl_power'; echo generate_port_link( $port, "", $port['graph_type'] ); echo '';