Ethernet Switching
Ethernet Switching

QFX5110 and EX 2300 how to build template from MIB file for Zabbix 3.4+

[ Edited ]
‎04-12-2018 03:04 AM

Hi I want to ask you how you can convert Mib files to XML for Zabbix?

I read about mib2zabbix.pl and about mib2template.pl, and I did see that the mib2template.pl work for me but with Mib file for Mikrotik.

I move all mib.txt files of Juniper to /usr/share/snmp/mibs/

When I run:
snmptranslate -m /usr/share/snmp/mibs/mib-jnx-fabric-chassis.txt -Tz | egrep '"1\.3\.6\.1\.4\.1\.[0-9]+"'

The result is:
"juniperMIB" "1.3.6.1.4.1.2636"



Now I run :
./mib2template.pl --module JUNIPER-FABRIC-CHASSIS --root 1.3.6.1.4.1.2636 --group Templates > mib-jnx-fabric-chassis.xml 

And the result is:
2018-04-11 13:44:14 WARN> Parent OID .1.3.6.1.4.1.2636 belongs to JUNIPER-SMI, which isn't among the ones specified with --module option


Why with Juniper Mib files I cant generate xml template?


My question is how you can write template for Zabbix from Juniper MIB files?
They are not like Mikrotik, in Mikrotik case I see only one file in .mib extension.
In Juniper case I see only .txt files 140 + files...

I downloaded them from here:
https://www.juniper.net/documentation/software/index_mibs.html

Standard and Juniper Mibs, but with snmp builder and mib2zabbix and mib2template perl scripts I can't do  template for Zabbix, I am successfully with onle few mibs from 140+  inside in both folders, Standard and Juniper Mibs.

I tryed with 17.3 Jun Os release mib txt files.

Where can I find more information about Juniper mibs and how to use them in Zabbix Server?






1 REPLY 1
Ethernet Switching

Re: QFX5110 and EX 2300 how to build template from MIB file for Zabbix 3.4+

‎10-18-2019 12:09 PM

Hi,

 

Check these out, maybe it helps:

 

https://share.zabbix.com/component/mtree/owner/larcorba

 

Regards,

 

Nathan