0% found this document useful (0 votes)
37 views7 pages

use-zabbix-monitor-interface-rate-2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views7 pages

use-zabbix-monitor-interface-rate-2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Use Zabbix monitor interface in/out rate

ZiJun Li(李子俊) March 13, 2023 Setting Guide 118 views 0

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.

1. Use OID in Zabbix to monitor hillstone interface rate

step1: enable manage snmp for the interface

step2: enable snmp agent, then add snmp host


step3: add host in Zabbix, the interface type we should select snmp, input the username and
IP address of hillstone

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

So far we finished the monitor part configuration.


step5: Add graph for monitor item, the purpose of this step is to better check the statistic
from graph.

In items part, select the 2 mointor items we just created.

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

step1: install mib browser software in Zabbix server

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

step2: import private mib file into Zabbix server

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

step2: add item and graph in Zabbix

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.

You might also like