In this guide, you will learn how to add network equipment to Zabbix. We will cover monitoring an Aruba switch using SNMP and a pfSense firewall using the Zabbix Agent. Finally, we will visualize network traffic with a bandwidth graph.
Before Zabbix can monitor a switch, the switch must be configured to allow SNMP traffic. We will use an Aruba AOS-CX switch for this example.
Access the switch terminal and enter global configuration mode. First, ensure the interfaces are up and not in routing mode (if using it as a Layer 2 access switch).
conf t
int 1/1/1-1/1/52
no routing
no shutdown
exit
Next, configure an IP address on VLAN 1 so the switch can communicate with the Zabbix server.
interface vlan 1
ip address [YOUR_SWITCH_IP] 255.255.255.0
exit
Define the SNMP community string (a shared password) and enable the SNMP server on the default VRF.
snmp-server community [COMMUNITY_NAME]
snmp-server vrf default
write memory
Note: "public" is a common default community string, but you can choose a custom name (e.g., "TSS").
Now that the switch is configured, we can add it to Zabbix.
From your Zabbix server (Ubuntu), verify you can reach the switch via Ping and check the SNMP port (UDP 161) using Netcat.
nc -zu [SWITCH_IP] 161
In Zabbix, go to Data Collection > Hosts > Create Host.
Click Add. The SNMP availability icon should turn green shortly.
For pfSense, we will use the native Zabbix Agent package for more detailed monitoring.
Log in to your pfSense web interface. Go to System > Package Manager > Available Packages. Search for "zabbix-agent" (ensure you select the version matching your server, e.g., Agent 7) and click Install.
Once installed, go to Services > Zabbix Agent.
Click Save.
Back in Zabbix, create a new host for the firewall.
If the availability icon stays red, double-check that you entered the correct IP address.
To visualize network traffic, we will generate load using iPerf and create a graph in Zabbix.
Install iPerf on pfSense (via Package Manager) and enable it as a server under Diagnostics > iPerf. On your Zabbix server (or any Linux client), install iPerf3 and run a UDP bandwidth test:
# Install iPerf3
sudo apt install iperf3 -y
# Run UDP Stream (250 Mbps for 99 seconds)
iperf3 -c [FIREWALL_IP] -u -b 250M -t 99
Create a new Dashboard in Zabbix.
You should now see a live graph reflecting the 250 Mbps traffic stream you initiated.