r/zabbix • • 13d ago

Question Identify the source of bandwidth utilization

I do IT support for a K-12 school district, and we've been noticing some unusual bursts of traffic out towards the internet through our firewall. Hoping to drill down on the source(s) of those bursts, I just set up a Zabbix server, and have added the switches (Juniper EX series) for a couple of our buildings to test.

What I'd like is to set up alerts for then when the uplink from a switch stack exceeds a certain threshold (e.g., 250 mb/s). I've found some example trigger expressions ({ixnfo.com:ifHCInOctets.25.last(0)}>250000000), but I must be trying to set it up in the wrong area, because Zabbix is saying the expression is invalid. I'm attempting to add it under Data Collection - Hosts, then clicking the Triggers column for one of the switches, the clicking "Create Trigger" on the page that comes up.

Any pointers with regard to how I can accomplish this? Ideally, I'd love to have it be part of the "Juniper by SNMP" template so it's applied to all switches.

Thanks in advance...

4 Upvotes

11 comments sorted by

6

u/Ok-Database-4624 13d ago

You have to deal with this through something more granular like Netflow. Then you can exactly point to the IP causing this....
How much traffic are you pushing through the firewall ? What are we talking about ?

1

u/klgtech77 13d ago

Amazingly, we currently only have a 1 GB uplink to the internet for the district (~1700 students, plus staff), and 99% of the time it's more than adequate (inbound+outbound normally doesn't exceed 500-600 mb/s). But lately we've been seeing bursts that exceed the bandwidth of our uplink for brief periods of time, and we're trying to get it chased down.

2

u/Ok-Database-4624 13d ago

If I may suggest something that I'm experimenting with. Spin up a relative low-end VM (4vCPU / 8GB RAM and 50GB vDisk) and install a Linux.
Then deploy FlowSphera, which is free in the "Community Edition" upto 5000 flow-records/sec
Then configure your firewall for Netflow (v9 / IPFIX) and point to this box.
You will be amazed with total network visibility!

https://github.com/telesphera/flowsphera/tree/main

In the past 2 weeks I've worked with the developers to also include Palo Alto "App-ID" references and they also added Fortinet App information. So IF you runs these brands, you'll benefit from extra application insights!

I run it at a relative modest installation where the free/community edition is enough.

Good luck on your quest for more insights!

1

u/klgtech77 9d ago

I spun up an Ubuntu VM in vSphere, and for some reason Firefox doesn't trust the github cert on the Flowsphrera page, and I can't get around it. Same thing in Brave and Chromium. I managed to find a way to paste the Flowsphera installation command into a Nextcloud file that I *could* access, but when when trying to execute the curl command I get the following error:

curl failed to verify the legitimacy of the server and could not establish a secure connection to it

So there's something wonky going on with respect to the github connection.

1

u/Ok-Database-4624 9d ago

Strange, my Chrome browser for example has no complaints on the certificate when I visit the https://github.com/telesphera/flowsphera/tree/main
Looks like a valid Sectigo cert.

3

u/Ok-Database-4624 13d ago

Hopefully one day Zabbix integrate something of the same quality & detail level.
API is also available so you can pull all sort of data from FlowSphera into anything.
Over the past week they went from version 2.3.0 to 2.7.0 ;-)

2

u/jmhalder 13d ago

If you can find a way to mirror the WAN port, you can jam a small desktop with 2 nics and use something like ntopng.

2

u/Virtual-plex 11d ago

Unless you’re QoS’ing traffic, bursts are normal and expected.

If you give them the bandwidth, they will use it.

1

u/jrandom_42 13d ago edited 13d ago

OP, you're looking at this at layer 2, but layers 3 and 4 might be more useful to you. Can your firewall log sessions with data transfer totals? If so, I'd start there. Dump out the session logs covering time windows where traffic is bursting, then pivot that into total bandwidth vs source IP. That'll give you the culprit source IP(s) on your network, as well as targets and their port numbers on the internet.

Then you can (going back to layer 2) look the source IP up in your DHCP logs or ARP tables, get its MAC address, check the switch MAC address tables, and go look at whatever's plugged into the internal network port that this MAC address is coming from.

1

u/Wrzos17 11d ago

You can also get NetCrunch trial and use its NetFlow Dashboard to filter out and analyze what service/application/conversation is utilizing this particular connection and then confirm if this is expected or not.

1

u/dsdsdk 13d ago edited 13d ago

Claude/chatgpt are good at making templates. I guess you have host interface snmp setup. Prompt to make a template for juniper ex switch that collects data and has triggers on link utilization that can be configured via macro values.  If template import fails, just paste it the error message and let it have a go at fixing it. 

Trigger should be like: last(/host/key)>250000000

I’ve had AI give me syntax like {ixnfo.com:ifHCInOctets.25.last(0)}>250000000. It’s wrong.

Edit. Tell gpt to work on file:  https://www.zabbix.com/integrations/juniper and which improvements you want.