Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[Zabbix Technology Exchange] MIB browser analyzes MIB

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

MIB full name: management Information Base (MIB,Management Information Base) is the TCP/IP network management protocol standard

As one of the contents of the framework, MIB defines the data items that must be saved by managed devices, the operations allowed on each data item and its meaning, that is, data variables such as control and state information of managed devices that can be accessed by the management system are stored in MIB.

MIB source: generally you can ask the manufacturer directly, need to provide serial number.

Parsing MIB: a MIB browser is required. It's attached.

Load MIB:

The following is an analysis of the power supply of cisco switches.

CiscoEnvMonSupplyStatusTable, which belongs to the table of power supplies on Cisco switches, records power-related information.

Display the description of the ask power meter at Descr

The table of power supply status maintained by the environmental monitor card.

According to this table, using the corresponding OID, namely .1.3.6.1.4.1.9.9.13.1.5, you can obtain the relevant information and use the

Snmpwalk can brush out the information of the corresponding table, as follows:

The brushed information corresponds to the picture. For specific information, you can see each Descr description directly.

Let's find the information we need.

CiscoEnvMonSupplyStatusDescr is the name of the power supply. Zabbix can change OID into a name to increase readability.

Snmpwalk collects the OID information, OID:.1.3.6.1.4.1.9.9.13.1.5.1.2

There are two values collected, indicating that the device needs to be a dual power supply. Automatic discovery and definition of rules are supported at the zabbix level.

The principle is to make it json, and then traverse it.

Look for the status information of the power supply below:

CiscoEnvMonSupplyState this is the status of the power supply. The value of the monitoring item corresponding to zabbix is OID.

Snmpwalk collects the OID information, OID:.1.3.6.1.4.1.9.9.13.1.5.1.

Because the OID collected by snmpwalk is a number, I can't read it.

There is a corresponding description in syntax: (zabbix supports mapping the collected values)

The name and status of the power supply are obtained by OID, and the rest can be operated in zabbix.

Zabbix defines auto-discovery rules

Where {# SNMPVALUE} belongs to the content where the zabbix built-in defined value represents the following marked red:

Official links to snmp auto-discovery:

Https://www.zabbix.com/documentation/4.0/zh/manual/discovery/low_level_discovery/snmp_oids

Zabbix defines monitoring items:

Where {# SNMPINDEX} belongs to the content where the zabbix built-in defined value represents the following marked red:

{# SNMPINDEX} this value corresponds to the {# SNMPINDEX} of the status OID:

Since the state value is numeric, it is necessary to do value mapping to increase readability.

Value mappings are generally customized and created by yourself

Just select the value you created:

The effect is as follows:

Attachment the use of mib above:

Mib browser:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report