Comments (5)
I can imagine one of two problems happening here:
- Zabbix doesn't support all types of traps, so the script might be skipping them deliberately
- The trap you desire does not exist in the portion of the MIB tree (root OID) you are exporting.
Try adding some logging to the script to see if your trap is being processed and what is happening to it. Also, try grepping the MIB files for connUnitPortStatusChange
so you can see where it lives and what types it is composed of.
from mib2zabbix.
# grep -i connUnitPortStatusChange FCMGMT-MIB.mib
connUnitPortStatusChange TRAP-TYPE
# grep -i connUnitPortStatusChange FCMGMT-MIB.xml
# echo $?
1
#
From my first post, we can see in "snmptt" output, that FCMGMT-MIB file parsed correctly and translated to human readable format.
Unfortunately, i'm not perl developer, i was try debug your script, but it isn't easy for me. Bash or python i can (on user-level), but not perl.
from mib2zabbix.
Understood. I'll take a look to try understanding what is going wrong. For reference, can you please provide the exact commands you are using to generate the Zabbix templates?
from mib2zabbix.
I use this command
mib2zabbix.pl -o .1.3.6.1.3.94 -G CUSTOM-TEMPLATES -v 2 > FCMGMT-MIB.xml
And some examples, that show if MIB in the right location:
# snmptranslate .1.3.6.1.3.94
fcmgmt
# snmptranslate .1.3.6.1.3.94.5
connUnitServiceSet
from mib2zabbix.
Disregard this. I found that it's all ok
I have same issue. I generated xml template, but found, that's not all OID included in my template.
That's how i was generating:
$ snmptranslate -Tz -m ./Shtyl-MIB_UPS2-06.mib | ./mib2zabbix.pl -o ".1.3.6.1.4.1.34498.2.6" -f "./Template Shtyl UPS auto.xml" -e -G UPS -N "Template Shtyl UPS" -v 3 -L authNoPriv -n main -a SHA --disc-delay=3600 --history=90 --trends=365
Smartmatch is experimental at ./mib2zabbix.pl line 475.
Now, after realizing that not all OID included i made oneline script to find which of them:
~~$ for oid in $(snmptranslate -Tz -m ./Shtyl-MIB_UPS2-06.mib | grep -oE "1.3.6.1.4.1.34498.2.6[0-9,\.]+"); do echo -n $(snmptranslate -Onf $oid)"("$oid"): "; if grep -q "$oid" "Template Shtyl UPS auto.xml"; then echo "present"; else echo "absent"; fi; done~~
....
My MIB file is:
Shtyl-MIB_UPS2-06.mib.zip
from mib2zabbix.
Related Issues (20)
- [Question] How to load a particular MIB File HOT 4
- ./mib2zabbix.pl: No such file or directory HOT 1
- guide to implement HOT 4
- Unknown authentical protocol 'SHA' at /home/vagrant/bin/mib2zabbix line 243. HOT 1
- table entry does not have the 'Entry; suffix HOT 2
- OID .1.3.6.1.4.1.6247 not found in MIB tree HOT 5
- Please give examples of usage HOT 3
- SQL duplicate key while importing template
- Circular data structures not supported (XML::Simple 2.22) HOT 18
- Smartmatch is experimental HOT 4
- mib2zabbix generates empty XML
- Template does not contain all parts of mib HOT 3
- Cannot find module - routerLR77V2L
- Version 5 HOT 2
- Zabbix 2.4 Template Schema Support HOT 12
- Low Level Discovery OID Error HOT 3
- NEW option for load MIB file HOT 4
- IF-MIB HC entries?
- Quoted literal in discoverd item HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mib2zabbix.