Hands-on tutorial
Tutorials · Monitoring
How to Monitor Switches and Gateways With Zabbix and SNMP
Deploy Zabbix in containers, add network devices with SNMPv3 templates, graph interfaces and PoE, and alert on outages and errors.
Before you start
- A Linux server with Docker and Docker Compose
- SNMPv3 enabled on switches and gateways (or SNMPv2c with a unique community on a management VLAN)
- Firewall rules allowing UDP 161 from the Zabbix server
Step by step
Deploy Zabbix
Use the official Zabbix Docker Compose files with PostgreSQL, the server and the web interface.
git clone https://github.com/zabbix/zabbix-docker.git cd zabbix-docker docker compose -f docker-compose_v3_ubuntu_pgsql_latest.yaml up -d
Secure the web interface
Change the default admin password immediately, put the interface behind HTTPS and restrict access to the network team.
Configure SNMPv3 on devices
Create an SNMPv3 user with authentication and privacy (SHA and AES) and allow polling only from the Zabbix server.
snmp-server user zabbix nms v3 auth sha <auth-pass> priv aes 128 <priv-pass> snmp-server host 10.0.99.20 version 3 priv zabbix
Add hosts with templates
Create a host per device with its management IP, link a generic SNMP network template, and set the SNMPv3 credentials as macros.
Check discovered items
Zabbix discovers interfaces and creates traffic, error and status items for each port. Disable discovery on unused ports to reduce noise.
Create useful triggers
Alert on device unreachable, uplink down, interface errors rising and high CPU or temperature. Add a delay so brief blips do not page anyone.
Build dashboards
Make one dashboard per site with uplink traffic, availability and active problems, and a summary for management.
Commands are generic, industry-standard examples. Exact syntax and menu names vary by model and firmware; check your device's manual on the Documentation page.
Pro tips
- Use host groups per site and per device type.
- Back up the Zabbix database regularly.
- Keep NavCloud for configuration and Zabbix for long-term metrics if you need both.
FAQ
Frequently asked questions
SNMPv2c or v3?
SNMPv3 with authentication and encryption is recommended. If you must use v2c, use a unique read-only community and restrict it to the monitoring server.
How often should devices be polled?
Every 1–5 minutes for interfaces is common; more often increases load and database size.
Keep learning
Related guides
SNMP and syslog monitoring
Read more →Network alerts by email and webhook
Read more →Prometheus and Grafana on an edge server
Read more →How to Monitor Your Network With SNMP and Syslog
Know about failures before users call: collect interface statistics with SNMPv3 and central logs with syslog.
Read more →How to Synchronise Time on Network Devices With NTP
Accurate clocks are essential for logs, certificates, schedules and CCTV evidence. Configure NTP everywhere in minutes.
Read more →How to Back Up and Restore Network Device Configurations
A configuration backup turns a failed device into a quick swap. Set up regular backups and test a restore.
Read more →Stuck on a step?
Ask Navijin technical support or an authorised partner for help with your configuration.