Ad Widget

Collapse

cannot convert MIB files to ZBX template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kitikant
    Junior Member
    • Oct 2024
    • 29

    #1

    cannot convert MIB files to ZBX template

    Hi everyone,
    I have used mib2zabbix script to convert MIB files to zabbix template and it has work until now.
    I use command
    Code:
    ./mib2zabbix -o .1.3.6.1.4.1.562.3.1
    as usual
    but it returns as
    MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/local/share/snmp/mibs
    Cannot find module (NB-FLT): At line 1 in (none)
    OID .1.3.6.1.4.1.562.3.1 not found in MIB tree.
    I have already loaded mib file at /usr/share/snmp/mibs/NB-FLT.txt, so i think there are no problems here because when i convert other files that i have converted before, it still works!
    Could anyone point me that what am i missing? appreciate every assistance.
    Last edited by kitikant; 11-11-2024, 06:34.
  • kitikant
    Junior Member
    • Oct 2024
    • 29

    #2
    Additional information, i have enabled MIB support for snmp traps by adding
    Code:
    -m ALL
    in the following line in Snmptapd service.
    Code:
    ExecStart=/usr/sbin/snmptrapd $OPTIONS -f -m ALL
    i use Zabbix 7.0.4 in CentOS9.
    Last edited by kitikant; 11-11-2024, 06:28.

    Comment

    • ISiroshtan
      Senior Member
      • Nov 2019
      • 324

      #3
      Are you sure the .txt is a proper MIB file? Normally they come with .mib extension.

      Try installing this NBFLT-MIB + this NT-Reference-MIB.



      Comment

      • kitikant
        Junior Member
        • Oct 2024
        • 29

        #4
        Actually, the original file is .mib, but I follow the procedure in this website to load MIB file into Zabbix server How to Import MIB to Zabbix: A Step-by-Step Guide, So I change the file surname.

        Comment

        • kitikant
          Junior Member
          • Oct 2024
          • 29

          #5
          Originally posted by ISiroshtan
          Are you sure the .txt is a proper MIB file? Normally they come with .mib extension.

          Try installing this NBFLT-MIB + this NT-Reference-MIB.




          I have followed your suggestion, but it still returns
          Click image for larger version  Name:	Screenshot 2024-11-11 180825.png Views:	0 Size:	15.7 KB ID:	494047 any solution?
          Last edited by kitikant; 11-11-2024, 13:15.

          Comment

          • ISiroshtan
            Senior Member
            • Nov 2019
            • 324

            #6
            Interesting
            I'm happy to see it no longer gives error
            Cannot find module (NB-FLT): At line 1 in (none)
            OID .1.3.6.1.4.1.562.3.1 not found in MIB tree.
            Tho it is weird it still fails to translate the OID
            Can you just run "snmptranslate .1.3.6.1.4.1.265.3.8.1"? Is it also fails?
            Also you imported NBFLT-MIB into mib folder also, right?

            In mib file said node does exist:
            nGenBase OBJECT IDENTIFIER ::= {ngen 1}
            Click image for larger version

Name:	image.png
Views:	667
Size:	5.2 KB
ID:	494054

            Comment

            • kitikant
              Junior Member
              • Oct 2024
              • 29

              #7
              Originally posted by ISiroshtan
              Interesting
              I'm happy to see it no longer gives error

              Tho it is weird it still fails to translate the OID
              Can you just run "snmptranslate .1.3.6.1.4.1.265.3.8.1"? Is it also fails?
              it seems that it is still not recognized by Net-SNMP tool cuz
              Click image for larger version

Name:	Screenshot 2024-11-12 090748.png
Views:	659
Size:	7.8 KB
ID:	494094

              Originally posted by ISiroshtan
              Also you imported NBFLT-MIB into mib folder also, right?

              In mib file said node does exist:

              Click image for larger version  Name:	image.png Views:	7 Size:	5.2 KB ID:	494054
              Yes, I've already imported this mib into mib folder.
              Click image for larger version

Name:	Screenshot 2024-11-12 091540.png
Views:	643
Size:	44.4 KB
ID:	494095
              that why I'm so confused, the node in mib file exists but it said it cannot find that node. My brain-dead TT

              Comment

              Working...