Query SNMP Hosts using MIBs
Video Lecture
Description
Querying SNMP agents with MIB descriptions is likely to fail by default when queried via a Zabbix server SNMP agent item.
It will also fail when trying from the command line using the snmpget command,
1 |
|
1 2 |
|
We can enable querying by MIB descriptions by running this command on the Zabbix server itself.
1 |
|
Now this command will work
1 |
|
1 |
|
I then restart the Zabbix server process.
1 |
|
and update my items for the host in Zabbix, to query using MIB descriptions instead of OIDs.
OID inOctets for interface 1 = IF-MIB::ifInOctets.1 (oid = 1.3.6.1.2.1.2.2.1.10.1)
OID outOctets for interface 1 = IF-MIB::ifOutOctets.1 (oid = 1.3.6.1.2.1.2.2.1.16.1)