Giter VIP home page Giter VIP logo

Comments (5)

cavaliercoder avatar cavaliercoder commented on May 16, 2024

I can imagine one of two problems happening here:

  1. Zabbix doesn't support all types of traps, so the script might be skipping them deliberately
  2. 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.

romale avatar romale commented on May 16, 2024
# 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.

cavaliercoder avatar cavaliercoder commented on May 16, 2024

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.

romale avatar romale commented on May 16, 2024

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.

rafaelrs avatar rafaelrs commented on May 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.