See traffic(bit per second) on Network map

I want to configure the Network map to see the Traffic(bit per second).
I edit config.php and print-map.inc.php but I didn’t find the solution to see the Traffic on the edge of th Network-map. Now I see the local_port on the edge.
‘label’=> ($local_port[‘ifName’]) . ’ > ’ . ($remote_port[‘ifName’]),

It is possible to see Traffic on the Network-map ?
What is the solution to see this on the edge ?

You could pull the in/out octets rate from the existing DB query - will need some more cleanup/formatting/unit calculations:

image

I have my config.php with:

$config['network_map_vis_options'] = '{
"configure": { "enabled": true},
"layout": {
    "hierarchical": {
      "enabled": true
    },
   },
}';

Diff since print-map.inc.php was last touched (Fix structure of network_map_legend defualt (#10429) · librenms/librenms@4750dea · GitHub)

229a230,231
>         'ifInOctets_rate'=>$items['remote_ifinoctets_rate'],
>         'ifOutOctets_rate'=>$items['remote_ifoutoctets_rate'],
324c326
<                 'label'=> \LibreNMS\Util\Rewrite::shortenIfType($local_port['ifName']) . ' > ' . \LibreNMS\Util\Rewrite::shortenIfType($remote_port['ifName']),
---
>                 'label'=> \LibreNMS\Util\Rewrite::shortenIfType($local_port['ifName']) . ' > ' . \LibreNMS\Util\Rewrite::shortenIfType($remote_port['ifName']) . ' ('. $remote_port['ifInOctets_rate'] . ' / ' . $remote_port['ifOutOctets_rate'] . ')',

Thank you this modification works.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.