use-zabbix-monitor-interface-rate-2
use-zabbix-monitor-interface-rate-2
There are 2 way to monitor interface rate via Zabbix, the first one is via OID, the second one is
import mib file into Zabbix and use mib OID name to monitor it. In this document, we will
introduce both method.
step4: add monitor item, in this test we monitor interface rate, The OID is
.1.3.6.1.4.1.28557.2.6.1.3.1.19(HillstoneIfInRate),
.1.3.6.1.4.1.28557.2.6.1.3.1.20(hillstoneOutRate), to get the OID information, you can take
the mib reference book as reference(https://kb.hillstonenet.com/en/wp-
content/uploads/2022/01/StoneOS-SNMP-MIB-Reference_5.5R9.pdf). Beside OID, we also
need to know the interface index, we can use command show ip route int to get the interface
index
From the picture we can see interface eth0/0's index is 30, so the full OID for in rate is
.1.3.6.1.4.1.28557.2.6.1.3.1.19.30, the full OID for out rate is
.1.3.6.1.4.1.28557.2.6.1.3.1.20.30, add these 2 in the monitor item as below step
Finally in monitoring---hosts, in the host we created, we can see the graph item, click on the
graph, then we can see the statistics in graph.
2. Import private mib into Zabbix, and use mib oid name to add monitor items and
monitor it
If you are using Ubuntu, you can install snmp-mibs0downloader by below command.
apt-get install snmp-mibs-downloader
If you are using Centos, you can install snmp software be below command.
yum install -y net-snmp-utils
The path /usr/share/snmp/mibs is used to store mib file, you can upload the private mib files
to this path, but remember to change the suffix from .my to .txt.
You can download Hillstone private MIB file from below link.
https://images-en.hillstonenet.com/StoneOS/MIB/v9/
In this test we will use the interface mib as an example. Remember you need to import
HILLSTONE-SEMI at the same time.
After import the mib file, please restart zabbix service by command "systemctl restart
zabbix-server.service"We can review the oid info be command "snmpwalk -v 2c -c hillstone
192.168.2.60 -m ALL HILLSTONE" , for this command -v option means snmp version, -c
option means community, the IP is the firewall's IP address.
interface eth0/0's index is 30, so we can filter the MIB OID name from the ouput command of
snmpwalk -v 2c -c hillstone 192.168.2.60 -m ALL HILLSTONE
add graph
After all these steps are done, we can check the statistic in graph, it have the same result as
what we did with oid number.