Monitoring WAN traffic with Beszel and port mirroring

Hello,

I am an individual user and not very network-savvy (so please bear with me). I have installed Beszel (server monitoring) on all my LAN devices and use it to monitor my self-hosted setup. The agent runs on my MikroTik hAP ax^3 as a container on the VETH beszel. It provides me with CPU, memory, disk and temperature data. As for the network, it monitors the traffic of its own interface, which is better than nothing but far from what I would expect from it. I would like to monitor the WAN traffic (ether1). I suppose I could reach that goal by mirroring interface ether1 to beszel.

My first question is: is this the right action to achieve my goal ?

If it is, would someone be patient enough to explain me how to achieve this ? And are there security consequences of replicating the WAN traffic on another interface ?

Thank you

EDIT: I suppose the port mirroring (if it is the correct solution) would be achieved by

/interface/ethernet/switch/set switch1 mirror-source=ether1 mirror-target=beszel

1 Like

Interested in this too, if someone know how to setup properly. Currently using LibreNMS for monitoring.

What I’ve been trying so far, with no success.

/interface/ethernet/switch/set switch1 mirror-source=ether1 mirror-target=beszel

It seems that only physical interfaces car be set as targets for mirroring.

Second attempt.

Set the beszel veth on a 192.168.1.2 address with gateway 192.168.1.1 and NAT port 45876 to 192.168.1.2. It works as before (interface traffic is monitored). If I try and set the beszel veth on the main (bridge) bridge, I loose any monitoring.

So I reverted to my initial situation.

What WAN indicators/parameters do you want to monitor?

Why not just use SNMP and Beszel without any mirroring…

I have tried setting up SNMP solutions, but they are huge, complex and heavy on (my limited) resources, and I just would like to monitor 1 index, that is WAN traffic (KB transmitted, KB received). Since I use Beszel on my different devices and it runs on RouterOS as a container, I thought there might be a way to use it for that index, involving mirroring or not. But I could not figure out how.

Have you tried this one?

1 Like

I haven’t… for I had never heard of it. I’ll give an eye.

Thanks a lot!

I also tried to use Beszel, but then my needs outgrew its capabilities. :wink:

… and I had to transfer everything to another system.

This is an example of one of the dashboards, in this case - Mikrotik E50UG.

I’m almost there but…

I have set up the beszel-snmp container. It can “see” the hub but the hub cannot “see” it. I have set the hub to look for it at port 6655. Do you think you can troubleshoot me?

EDIT: I hadn’t understood that I had to install the forked hub. Since it doesn’t seem to be maintained, I prefer sticking to the master branch.

Try using the default port 45876 for the beszel-snmp container configuration.

This is port for “hub > to > snmp container” connection.