SNMP v2c and v3: how it works and which keys Zabbix uses
Sign in to read this lesson
We will connect the switch, the firewall and the hypervisor to Zabbix over SNMP. First we need to understand SNMP itself: what OID and MIB are, how v2c differs from v3, how to test a device with snmpwalk from the Zabbix server, and which template, OID and item key are used for which device.
What you will learn
- In SNMP the manager (Zabbix server) queries the agent (device) on UDP 161; the device itself can report an event with a trap to UDP 162.
- The address of every measurement is an OID (
1.3.6.1.2.1.1.5.0= sysName), and a MIB is the dictionary that explains the names and meaning of these numbers. - v2c works only with a community string and traffic is sent in the clear; v3 gives a user name, authentication (SHA) and encryption (AES) and is recommended for production.
- First test from the Zabbix server with
snmpwalk/snmpget, then add the host: if snmpwalk does not work, Zabbix will not either. - Common OIDs (sysDescr, sysUpTime, ifHCInOctets) are the same on all devices; CPU and memory are in the vendor's own branch: Cisco
1.3.6.1.4.1.9, Fortinet1.3.6.1.4.1.12356, Linux (net-snmp)1.3.6.1.4.1.2021.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.