Connecting a Cisco switch to Zabbix: SNMP v2c and v3
Sign in to read this lesson
On the lab switch SW-CORE-01 we set up SNMP first with v2c and then with v3, restrict access with an ACL to the Zabbix server only, test with snmpwalk from the Zabbix server and add the switch to Zabbix with the "Cisco IOS by SNMP" template. At the end we close v2c.
What you will learn
- v2c:
snmp-server community ITNlab-RO-26 RO ZBX-SNMP— read-only and only for the host in the ACL (10.10.10.20). - v3: first the view (
snmp-server view ZBX-VIEW iso included), then the group (v3 priv read ZBX-VIEW), then the user (auth sha ... priv aes 128 ...). - The v3 user is not shown in
show running-config; check withshow snmp userandshow snmp group. snmp-server ifindex persistkeeps port indexes stable after a restart, so the history of ports in Zabbix does not get mixed up.- In Zabbix: SNMP interface 10.10.10.2:161, template
Cisco IOS by SNMP, groupITN-Lab/Network/Switches; once v3 works,no snmp-server community ....
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.