T
T
Tremo2016-02-25 05:40:19
linux
Tremo, 2016-02-25 05:40:19

How to automatically recognize the number of NICs and their Zabbix names?

Good afternoon everyone.
Actually, I'm again with a question regarding zabbix-a. I will try to describe everything in detail to make it easier to imagine the picture.
To collect information from devices, I use the SNMP protocol where I got stuck.
One of the devices has several network cards and they are constantly added or removed. I would like the template in zabbix to recognize the names of active network cards cards in the device automatically and display their name and status. Now I can only manually enter the OID (I add a number with the serial number of the card at the end) for each active network card. But what to do if a new network card is added or, on the contrary, is removed? again update the template add items?
I know that this is feasible because there is a standard template that includes dependencies and recognitions, but I can’t figure out how it all connects and works.
It would be nice if you could explain to me the sequence of actions.
For example, in this case, how did the template recognize that I have two Internet interfaces?
0daa17c3741e405ca1f12da70ce4feb4.JPG

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Tremo, 2016-02-25
@tremo0880

As far as I understand, this is related to the "Discovery" function (discovery)

M
Mystray, 2016-02-25
@Mystray

If by SNMP, then something like this: there is a discovery rule, with templates.
For example, creating a discovery rule by OID ifName (.1.3.6.1.2.1.31.1.1.1.1.), we get a complete list of interface names.

$ snmpwalk -v2c -c public 10.0.10.1 ifName 
IF-MIB::ifName.1 = STRING: lo
IF-MIB::ifName.2 = STRING: eth0
IF-MIB::ifName.3 = STRING: eth1
IF-MIB::ifName.4 = STRING: eth2
IF-MIB::ifName.5 = STRING: eth3
IF-MIB::ifName.6 = STRING: ifb0

Then, based on this list and element templates, real elements are created.
https://www.zabbix.com/documentation/2.4/en/manual...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question