Is it possible to convert the mib file to zabbix template?
When I use mib2zabbix, it doesn't convert normally.
The SNMP OID value appears normally when responding with snmpttranslate, but when piped to mib2zabbix, the template seems to be created referring to other mibs.
When I read the mib file in snmpptTranslate,
[root@mgmt_cdp Alteon]# snmptranslate -Tz -m ./ALTEON-CHEETAH-LAYER4-MIB.mib
"org" "1.3"
"dod" "1.3.6"
"internet" "1.3.6.1"
"directory" "1.3.6.1.1"
"mgmt" "1.3.6.1.2"
"experimental" "1.3.6.1.3"
"private" "1.3.6.1.4"
"enterprises" "1.3.6.1.4.1"
"alteon" "1.3.6.1.4.1.1872"
"registration" "1.3.6.1.4.1.1872.1"
"aceswitch110" "1.3.6.1.4.1.1872.1.1"
"acedirector" "1.3.6.1.4.1.1872.1.2"
"aceswitch180" "1.3.6.1.4.1.1872.1.3"
"acedirector2" "1.3.6.1.4.1.1872.1.4"
"aceswitch180e" "1.3.6.1.4.1.1872.1.5"
"acedirector3" "1.3.6.1.4.1.1872.1.6"
"cachedirector" "1.3.6.1.4.1.1872.1.7"
"gs-switches" "1.3.6.1.4.1.1872.1.8"
"chas-switch" "1.3.6.1.4.1.1872.1.8.1"
When the snmpttranslate data is piped into mib2zabbix,
snmptranslate -Tz -m ./ALTEON-CHEETAH-LAYER4-MIB.mib | ./mib2zabbix -o .1.3.6.1.4.1 -f template-alteon_layer4-mib.xml -N Alteon_LAYER4-mib
If you check the SNMP OID of template-alteon_layer4-mib.xml,
<snmp_oid>.1.3.6.1.4.1.2021.16.2.1.101.{#SNMPINDEX }</snmp_oid>
When responding with snmpttranslate,
It normally responds with 1.3.6.1.4.1.1872.x, but if it is piped with mib2zabbix, it returns 1.3.6.1.4.1.2021.x. Is there a way to convert a template to a normal OID?
When I use mib2zabbix, it doesn't convert normally.
The SNMP OID value appears normally when responding with snmpttranslate, but when piped to mib2zabbix, the template seems to be created referring to other mibs.
When I read the mib file in snmpptTranslate,
[root@mgmt_cdp Alteon]# snmptranslate -Tz -m ./ALTEON-CHEETAH-LAYER4-MIB.mib
"org" "1.3"
"dod" "1.3.6"
"internet" "1.3.6.1"
"directory" "1.3.6.1.1"
"mgmt" "1.3.6.1.2"
"experimental" "1.3.6.1.3"
"private" "1.3.6.1.4"
"enterprises" "1.3.6.1.4.1"
"alteon" "1.3.6.1.4.1.1872"
"registration" "1.3.6.1.4.1.1872.1"
"aceswitch110" "1.3.6.1.4.1.1872.1.1"
"acedirector" "1.3.6.1.4.1.1872.1.2"
"aceswitch180" "1.3.6.1.4.1.1872.1.3"
"acedirector2" "1.3.6.1.4.1.1872.1.4"
"aceswitch180e" "1.3.6.1.4.1.1872.1.5"
"acedirector3" "1.3.6.1.4.1.1872.1.6"
"cachedirector" "1.3.6.1.4.1.1872.1.7"
"gs-switches" "1.3.6.1.4.1.1872.1.8"
"chas-switch" "1.3.6.1.4.1.1872.1.8.1"
When the snmpttranslate data is piped into mib2zabbix,
snmptranslate -Tz -m ./ALTEON-CHEETAH-LAYER4-MIB.mib | ./mib2zabbix -o .1.3.6.1.4.1 -f template-alteon_layer4-mib.xml -N Alteon_LAYER4-mib
If you check the SNMP OID of template-alteon_layer4-mib.xml,
<snmp_oid>.1.3.6.1.4.1.2021.16.2.1.101.{#SNMPINDEX }</snmp_oid>
When responding with snmpttranslate,
It normally responds with 1.3.6.1.4.1.1872.x, but if it is piped with mib2zabbix, it returns 1.3.6.1.4.1.2021.x. Is there a way to convert a template to a normal OID?
Comment