Ad Widget

Collapse

Zabbix Mib Upload Concer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vnoc
    Senior Member
    • Sep 2017
    • 115

    #1

    Zabbix Mib Upload Concer

    Hi All,


    I am trying to upload a mib and trying to push a trap from my application server but unable to do so.


    Can you please help me on uploading the MIB and push a trap and it shoudl be visble in the UI.

    Version I am using is 3.4.1 version


    I followed below link which didn't work.

    Join the friendly and open Zabbix community on our forums and social media platforms.


    I am stuck up at setting up mib and the error I am getting is below

    Jan 30 16:41:38 a0410tcmpstgsrv03 systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
    Jan 30 16:41:38 a0410tcmpstgsrv03 snmptrapd[38844]: MIB search path: $HOME/.snmp/mibs:/usr/share/snmp/mibs
    Jan 30 16:41:38 a0410tcmpstgsrv03 snmptrapd[38844]: Cannot find module (acision-smi.txt): At line 0 in (none)

    Jan 30 16:41:38 a0410tcmpstgsrv03 snmptrapd[38844]: NET-SNMP version 5.7.2
    Jan 30 16:41:38 a0410tcmpstgsrv03 systemd[1]: Started Simple Network Management Protocol (SNMP) Trap Daemon..


    The file is already in mibs file and in /etc/snmp/snmp.conf file as well

    Please help me in sorting out this



  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    This issue has nothong to do with zabbix per se.
    You can add MIB to be visable be zabbix by add in /etc/snmp/snmp.local.conf line:
    Code:
    mibs +<YOUR-MIB-FILE-MANE>
    Please read net-snmp documentation about how to register MIB file.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • vnoc
      Senior Member
      • Sep 2017
      • 115

      #3
      Thanks for the reply kloczek.

      Below is the files which I have given
      ===============
      [appuser@a0410tcmpstgsrv03 mibs]$ sudo cat /etc/snmp/snmp.local.conf
      mibs +ACISION-OAM-MONITORCONF-MIB
      mibs +ACISION-OAM-MONITOR-MIB
      mibs +ACISION-OAM-STATSCONF-MIB
      mibs +ACISION-OAM-STATS-MIB
      mibs +acision-smi.txt
      ==================

      and after adding the above and restarting the snmptrapd we are observing below error

      Jan 30 18:35:11 a0410tcmpstgsrv03 systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
      Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: MIB search path: $HOME/.snmp/mibs:/usr/share/snmp/mibs
      Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: Cannot find module (ACISION-OAM-CONFIGURATION-MIB): At line 10 in /usr/share/snmp/mibs/ACISION-OAM-MONITOR-MIB.txt
      Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: Did not find 'configurationCparamScalarSystemName' in module #-1 (/usr/share/snmp/mibs/ACISION-OAM-MONITOR-MIB.txt)
      Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: Cannot find module (ACISION-OAM-CONFIGURATION-MIB): At line 10 in /usr/share/snmp/mibs/ACISION-OAM-STATS-MIB.txt
      Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: Did not find 'configurationCparamScalarSystemName' in module #-1 (/usr/share/snmp/mibs/ACISION-OAM-STATS-MIB.txt)
      Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: Cannot find module (acision-smi.txt): At line 0 in (none)
      Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: NET-SNMP version 5.7.2
      Jan 30 18:35:12 a0410tcmpstgsrv03 systemd[1]: Started Simple Network Management Protocol (SNMP) Trap Daemon..









      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Originally posted by vnoc
        Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: MIB search path: $HOME/.snmp/mibs:/usr/share/snmp/mibs
        Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: Cannot find module (ACISION-OAM-CONFIGURATION-MIB): At line 10 in /usr/share/snmp/mibs/ACISION-OAM-MONITOR-MIB.txt
        Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: Did not find 'configurationCparamScalarSystemName' in module #-1 (/usr/share/snmp/mibs/ACISION-OAM-MONITOR-MIB.txt)
        Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: Cannot find module (ACISION-OAM-CONFIGURATION-MIB): At line 10 in /usr/share/snmp/mibs/ACISION-OAM-STATS-MIB.txt
        Jan 30 18:35:12 a0410tcmpstgsrv03 snmptrapd[40480]: Did not find 'configurationCparamScalarSystemName' in module #-1 (/usr/share/snmp/mibs/ACISION-OAM-STATS-MIB.txt)
        In above lines you have exact file names with paths in which MIB files should be present in your system however looks like something is wrong with your MIB files.
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • vnoc
          Senior Member
          • Sep 2017
          • 115

          #5
          After giving the correct files also still giving the error


          Jan 30 19:25:48 a0410tcmpstgsrv03 systemd[1]: Starting Simple Network Management Protocol (SNMP) Trap Daemon....
          Jan 30 19:25:48 a0410tcmpstgsrv03 snmptrapd[41736]: MIB search path: $HOME/.snmp/mibs:/usr/share/snmp/mibs
          Jan 30 19:25:48 a0410tcmpstgsrv03 snmptrapd[41736]: Cannot find module (acision-smi): At line 1 in (none)
          Jan 30 19:25:48 a0410tcmpstgsrv03 snmptrapd[41736]: NET-SNMP version 5.7.2
          Jan 30 19:25:48 a0410tcmpstgsrv03 systemd[1]: Started Simple Network Management Protocol (SNMP) Trap Daemon..

          Comment

          • kloczek
            Senior Member
            • Jun 2006
            • 1771

            #6
            Can you put somewhere public ally those MIB files with above issue?
            http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
            https://kloczek.wordpress.com/
            zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
            My zabbix templates https://github.com/kloczek/zabbix-templates

            Comment

            • vnoc
              Senior Member
              • Sep 2017
              • 115

              #7
              Do you mean I need to change the rocommunity to public and then try

              Comment

              • vnoc
                Senior Member
                • Sep 2017
                • 115

                #8
                at present I am not observing the issue but in the tmp path Zabbix_trap.tmp file is created but in the UI I am unable to find that trap and in the
                Zabbix_trap.tmp file it is not in correct format




                PDU INFO:
                notificationtype TRAP
                version 1
                receivedfrom UDP: [x.x.x.x]:59323->[x.x.x.x]:162
                errorstatus 0
                messageid 0
                community aciprivate
                transactionid 2
                errorindex 0
                requestid 515419141
                VARBINDS:
                DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (533636) 1:28:56.36
                SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-MIB::authenticationFailure
                SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
                14:19:10 2019/01/31 ZBXTRAP x.x.x.x
                PDU INFO:
                notificationtype TRAP
                version 1
                receivedfrom UDP: [x.x.x.x]:59323->[x.x.x.x]:162
                errorstatus 0
                messageid 0
                community aciprivate
                transactionid 3
                errorindex 0
                requestid 515419414
                VARBINDS:
                DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (535636) 1:29:16.36
                SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-MIB::authenticationFailure
                SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
                14:19:30 2019/01/31 ZBXTRAP x.x.x.x
                PDU INFO:
                notificationtype TRAP
                version 1
                receivedfrom UDP: [x.x.x.x]:59323->[x.x.x.x]:162
                errorstatus 0
                messageid 0
                community aciprivate
                transactionid 4
                errorindex 0
                requestid 515419687
                VARBINDS:
                DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (537637) 1:29:36.37
                SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-MIB::authenticationFailure
                SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
                14:19:50 2019/01/31 ZBXTRAP x.x.x.x


                Comment

                • vnoc
                  Senior Member
                  • Sep 2017
                  • 115

                  #9
                  can you please help me in sorting out this

                  Comment

                  • Evgeniy
                    Senior Member
                    • May 2012
                    • 157

                    #10
                    I'm using snmptrapd + SNMPTT to pass traps to Zabbix server

                    Comment

                    • kloczek
                      Senior Member
                      • Jun 2006
                      • 1771

                      #11
                      Originally posted by vnoc
                      can you please help me in sorting out this
                      Again .. could you please put your MIBs which generates some errors on loadingby libnetsnmp library somewhere publically to allow me have look what is wrong with those MIBs?
                      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
                      https://kloczek.wordpress.com/
                      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
                      My zabbix templates https://github.com/kloczek/zabbix-templates

                      Comment

                      • vnoc
                        Senior Member
                        • Sep 2017
                        • 115

                        #12
                        Hi Kloczek,


                        I have placed the correct file and the reported problem got sorted out . After that again I am getting below error. Could you please help me on this

                        After uploading the mibs to the path I have added a trap item with OID and after saving it is giving me an error as below (Both the screenshots are attached). Could you please look into this and help me in fixing this.plz.....


                        Click image for larger version

Name:	Capture2.PNG
Views:	603
Size:	38.3 KB
ID:	374207




                        Attached Files

                        Comment

                        • kloczek
                          Senior Member
                          • Jun 2006
                          • 1771

                          #13
                          Originally posted by vnoc
                          Hi Kloczek,


                          I have placed the correct file and the reported problem got sorted out . After that again I am getting below error. Could you please help me on this

                          After uploading the mibs to the path I have added a trap item with OID and after saving it is giving me an error as below (Both the screenshots are attached). Could you please look into this and help me in fixing this.plz.....
                          And what happens when you are trying to get data using snmpget/snmpwalk command?
                          http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
                          https://kloczek.wordpress.com/
                          zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
                          My zabbix templates https://github.com/kloczek/zabbix-templates

                          Comment

                          • vnoc
                            Senior Member
                            • Sep 2017
                            • 115

                            #14
                            Its just giving error I have not done any snmpget/snmpwalk command.


                            If it is compulsory to perform those commands . kindly let me know where should I perform that

                            Comment

                            • kloczek
                              Senior Member
                              • Jun 2006
                              • 1771

                              #15
                              Originally posted by vnoc
                              Its just giving error I have not done any snmpget/snmpwalk command.


                              If it is compulsory to perform those commands . kindly let me know where should I perform that
                              Zabbix and snmp-net commands like snmpget/snpwalk commands are using exactly the same libsnmp library which is responsible for OIDs resolution and communication with remote SNMP agent).
                              Using those commands is base technique on resolving any issues with SNMP.
                              As long as those commands are working collectedly zabbix will be OK as well.
                              http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
                              https://kloczek.wordpress.com/
                              zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
                              My zabbix templates https://github.com/kloczek/zabbix-templates

                              Comment

                              Working...