Skip to content


 Zabbix
 Grafana
 Prometheus
 Threejs and TypeScript
 SocketIO and TypeScript
 Blender Topological Earth
 Sweet Home 3D
 Design Patterns Python
 Design Patterns TypeScript
   
 Course Coupon Codes
Three.js and TypeScript
Kindle Edition
$9.99 $14.99 Paperback 
$29.99 $34.99




Design Patterns in TypeScript
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99




Design Patterns in Python
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99




Query SNMP Hosts using MIBs

Video Lecture

Query SNMP Hosts using MIBs Query SNMP Hosts using MIBs Query SNMP Hosts using MIBs

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,

snmpget -v2c -cmycommunity grafana.seanwasere.com IF-MIB::ifInOctets.1
--> Cannot find module (IF-MIB)
--> IF_MIB::ifInOctets.1: Unknown Object Identifier

We can enable querying by MIB descriptions by running this command on the Zabbix server itself.

sudo apt install snmp-mibs-downloader

Now this command will work

snmpwalk -v 2c -c mycommunity grafana.seanwasere.com IF-MIB::ifInOctets.1
--> IF-MIB::ifInOctets.1 = Counter32: 566637161

I then restart the Zabbix server process.

sudo service zabbix-server restart

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)

MIBs