Ad Widget

Collapse

SNMP trap version 3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • winghello
    Junior Member
    • Jun 2019
    • 6

    #1

    SNMP trap version 3

    Hi Everyone,

    Is SNMP trap version 3 works for Zabbix? I have the following configuration. Zabbix is able to see the SNMP traps version 1,2 but not version 3.

    # Example configuration file for snmptrapd
    #
    # No traps are handled by default, you must edit this file!
    #
    # authCommunity log,execute,net public
    # traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold
    traphandle default snmptt
    # authCommunity execute public
    authCommunity execute public
    authCommunity execute monitor724
    authCommunity execute monitor_1qe


    createUser -e 0x0304050607 myusername SHA "mypassword01" AES "mypassword01"
    authUser log,execute myusername


    #perl do "/usr/bin/zabbix_trap_receiver.pl";


    Thanks

    Winghello
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Read and perform the tests: http://net-snmp.sourceforge.net/wiki..._notifications

    Comment

    • winghello
      Junior Member
      • Jun 2019
      • 6

      #3
      Hi Mamardaban,

      Thanks for your article on the snmptrapd.conf. I read it and try it but not successful.

      "snmptrapd -f - C -c /etc/snmp/snmptrapd.conf -Le" was able to identified my typo, but after correcting it. I still not able to see trap.

      // /etc/snmp/snmptrapd.conf
      traphandle default snmptt
      createUser -e 0x8000000001020304 myusername MD5 mypassword DES mypassword
      authuser log myusername

      // output of snmptrapd -f - C -c /etc/snmp/snmptrapd.conf -Le
      MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
      Cannot find module (AGENTX-MIB.txt): At line 0 in (none)
      Cannot find module (NOTIFICATION-LOG-MIB.txt): At line 0 in (none)
      Cannot find module (BRIDGE-MIB.txt): At line 0 in (none)
      Cannot find module (DISMAN-EVENT-MIB.txt): At line 0 in (none)
      Cannot find module (DISMAN-SCHEDULE-MIB.txt): At line 0 in (none)
      Cannot find module (DISMAN-SCRIPT-MIB.txt): At line 0 in (none)
      Cannot find module (EtherLike-MIB.txt): At line 0 in (none)
      Cannot find module (HCNUM-TC.txt): At line 0 in (none)
      Cannot find module (HOST-RESOURCES-MIB.txt): At line 0 in (none)
      Cannot find module (HOST-RESOURCES-TYPES.txt): At line 0 in (none)
      Cannot find module (IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt): At line 0 in (none)
      Cannot find module (IANAifType-MIB.txt): At line 0 in (none)
      Cannot find module (IANA-LANGUAGE-MIB.txt): At line 0 in (none)
      Cannot find module (IANA-RTPROTO-MIB.txt): At line 0 in (none)
      Cannot find module (IF-INVERTED-STACK-MIB.txt): At line 0 in (none)
      Cannot find module (IF-MIB.txt): At line 0 in (none)
      Cannot find module (INET-ADDRESS-MIB.txt): At line 0 in (none)
      Cannot find module (IP-FORWARD-MIB.txt): At line 0 in (none)
      Cannot find module (IP-MIB.txt): At line 0 in (none)
      Cannot find module (IPV6-FLOW-LABEL-MIB.txt): At line 0 in (none)
      Cannot find module (IPV6-ICMP-MIB.txt): At line 0 in (none)
      Cannot find module (IPV6-MIB.txt): At line 0 in (none)
      Cannot find module (IPV6-TCP-MIB.txt): At line 0 in (none)
      Cannot find module (IPV6-TC.txt): At line 0 in (none)
      Cannot find module (IPV6-UDP-MIB.txt): At line 0 in (none)
      Cannot find module (LM-SENSORS-MIB.txt): At line 0 in (none)
      Cannot find module (MTA-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-AGENT-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-EXAMPLES-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-EXTEND-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-PASS-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-TC.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-VACM-MIB.txt): At line 0 in (none)
      Cannot find module (NETWORK-SERVICES-MIB.txt): At line 0 in (none)
      Cannot find module (NS-PRODUCTS.txt): At line 0 in (none)
      Cannot find module (NS-SMI.txt): At line 0 in (none)
      Cannot find module (RFC1155-SMI.txt): At line 0 in (none)
      Cannot find module (RFC1213-MIB.txt): At line 0 in (none)
      Cannot find module (RFC-1215.txt): At line 0 in (none)
      Cannot find module (RMON-MIB.txt): At line 0 in (none)
      Cannot find module (SCTP-MIB.txt): At line 0 in (none)
      Cannot find module (SMUX-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-COMMUNITY-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-FRAMEWORK-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-MPD-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-NOTIFICATION-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-PROXY-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-TARGET-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-USER-BASED-SM-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-USM-AES-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-USM-DH-OBJECTS-MIB.txt): At line 0 in (none)
      Cannot find module (SNMPv2-CONF.txt): At line 0 in (none)
      Cannot find module (SNMPv2-MIB.txt): At line 0 in (none)
      Cannot find module (SNMPv2-SMI.txt): At line 0 in (none)
      Cannot find module (SNMPv2-TC.txt): At line 0 in (none)
      Cannot find module (SNMPv2-TM.txt): At line 0 in (none)
      Cannot find module (SNMP-VIEW-BASED-ACM-MIB.txt): At line 0 in (none)
      Cannot find module (TCP-MIB.txt): At line 0 in (none)
      Cannot find module (TRANSPORT-ADDRESS-MIB.txt): At line 0 in (none)
      Cannot find module (TUNNEL-MIB.txt): At line 0 in (none)
      Cannot find module (UCD-DEMO-MIB.txt): At line 0 in (none)
      Cannot find module (UCD-DISKIO-MIB.txt): At line 0 in (none)
      Cannot find module (UCD-DLMOD-MIB.txt): At line 0 in (none)
      Cannot find module (UCD-IPFWACC-MIB.txt): At line 0 in (none)
      Cannot find module (UCD-SNMP-MIB.txt): At line 0 in (none)
      Cannot find module (UDP-MIB.txt): At line 0 in (none)
      Cannot find module (CISCO-LWAPP-TC-MIB): At line 45 in /usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib
      Cannot find module (CISCO-LWAPP-DOT11-MIB): At line 47 in /usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib
      Did not find 'CLApIfType' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Did not find 'CLDot11Channel' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Did not find 'CLApAssocFailureReason' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Did not find 'CLApDot11RadioSubband' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Did not find 'CLApDot11RadioRole' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Did not find 'cldRegulatoryDomain' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Cannot find module (CISCO-VTP-MIB): At line 35 in /usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1
      Did not find 'vlanTrunkPortEntry' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
      Did not find 'VlanIndex' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
      Did not find 'vtpVlanEntry' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
      Did not find 'vtpVlanEditEntry' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
      Cannot find module (CISCO-QOS-PIB-MIB): At line 30 in /usr/share/snmp/mibs/CISCO-MEMORY-POOL-MIB.mib
      Did not find 'Percent' in module #-1 (/usr/share/snmp/mibs/CISCO-MEMORY-POOL-MIB.mib)
      couldn't open - -- errno 2 ("No such file or directory")

      // snmptrap -v 3 -n "" -a MD5 -A mypassword -x DES -X mypassword -l authPriv -u mysername -e 0x8000000001020304 localhost 0 linkUp.0
      MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
      Cannot find module (AGENTX-MIB.txt): At line 0 in (none)
      Cannot find module (NOTIFICATION-LOG-MIB.txt): At line 0 in (none)
      Cannot find module (BRIDGE-MIB.txt): At line 0 in (none)
      Cannot find module (DISMAN-EVENT-MIB.txt): At line 0 in (none)
      Cannot find module (DISMAN-SCHEDULE-MIB.txt): At line 0 in (none)
      Cannot find module (DISMAN-SCRIPT-MIB.txt): At line 0 in (none)
      Cannot find module (EtherLike-MIB.txt): At line 0 in (none)
      Cannot find module (HCNUM-TC.txt): At line 0 in (none)
      Cannot find module (HOST-RESOURCES-MIB.txt): At line 0 in (none)
      Cannot find module (HOST-RESOURCES-TYPES.txt): At line 0 in (none)
      Cannot find module (IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt): At line 0 in (none)
      Cannot find module (IANAifType-MIB.txt): At line 0 in (none)
      Cannot find module (IANA-LANGUAGE-MIB.txt): At line 0 in (none)
      Cannot find module (IANA-RTPROTO-MIB.txt): At line 0 in (none)
      Cannot find module (IF-INVERTED-STACK-MIB.txt): At line 0 in (none)
      Cannot find module (IF-MIB.txt): At line 0 in (none)
      Cannot find module (INET-ADDRESS-MIB.txt): At line 0 in (none)
      Cannot find module (IP-FORWARD-MIB.txt): At line 0 in (none)
      Cannot find module (IP-MIB.txt): At line 0 in (none)
      Cannot find module (IPV6-FLOW-LABEL-MIB.txt): At line 0 in (none)
      Cannot find module (IPV6-ICMP-MIB.txt): At line 0 in (none)
      Cannot find module (IPV6-MIB.txt): At line 0 in (none)
      Cannot find module (IPV6-TCP-MIB.txt): At line 0 in (none)
      Cannot find module (IPV6-TC.txt): At line 0 in (none)
      Cannot find module (IPV6-UDP-MIB.txt): At line 0 in (none)
      Cannot find module (LM-SENSORS-MIB.txt): At line 0 in (none)
      Cannot find module (MTA-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-AGENT-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-EXAMPLES-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-EXTEND-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-PASS-MIB.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-TC.txt): At line 0 in (none)
      Cannot find module (NET-SNMP-VACM-MIB.txt): At line 0 in (none)
      Cannot find module (NETWORK-SERVICES-MIB.txt): At line 0 in (none)
      Cannot find module (NS-PRODUCTS.txt): At line 0 in (none)
      Cannot find module (NS-SMI.txt): At line 0 in (none)
      Cannot find module (RFC1155-SMI.txt): At line 0 in (none)
      Cannot find module (RFC1213-MIB.txt): At line 0 in (none)
      Cannot find module (RFC-1215.txt): At line 0 in (none)
      Cannot find module (RMON-MIB.txt): At line 0 in (none)
      Cannot find module (SCTP-MIB.txt): At line 0 in (none)
      Cannot find module (SMUX-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-COMMUNITY-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-FRAMEWORK-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-MPD-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-NOTIFICATION-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-PROXY-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-TARGET-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-USER-BASED-SM-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-USM-AES-MIB.txt): At line 0 in (none)
      Cannot find module (SNMP-USM-DH-OBJECTS-MIB.txt): At line 0 in (none)
      Cannot find module (SNMPv2-CONF.txt): At line 0 in (none)
      Cannot find module (SNMPv2-MIB.txt): At line 0 in (none)
      Cannot find module (SNMPv2-SMI.txt): At line 0 in (none)
      Cannot find module (SNMPv2-TC.txt): At line 0 in (none)
      Cannot find module (SNMPv2-TM.txt): At line 0 in (none)
      Cannot find module (SNMP-VIEW-BASED-ACM-MIB.txt): At line 0 in (none)
      Cannot find module (TCP-MIB.txt): At line 0 in (none)
      Cannot find module (TRANSPORT-ADDRESS-MIB.txt): At line 0 in (none)
      Cannot find module (TUNNEL-MIB.txt): At line 0 in (none)
      Cannot find module (UCD-DEMO-MIB.txt): At line 0 in (none)
      Cannot find module (UCD-DISKIO-MIB.txt): At line 0 in (none)
      Cannot find module (UCD-DLMOD-MIB.txt): At line 0 in (none)
      Cannot find module (UCD-IPFWACC-MIB.txt): At line 0 in (none)
      Cannot find module (UCD-SNMP-MIB.txt): At line 0 in (none)
      Cannot find module (UDP-MIB.txt): At line 0 in (none)
      Cannot find module (CISCO-LWAPP-TC-MIB): At line 45 in /usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib
      Cannot find module (CISCO-LWAPP-DOT11-MIB): At line 47 in /usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib
      Did not find 'CLApIfType' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Did not find 'CLDot11Channel' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Did not find 'CLApAssocFailureReason' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Did not find 'CLApDot11RadioSubband' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Did not find 'CLApDot11RadioRole' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Did not find 'cldRegulatoryDomain' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
      Cannot find module (CISCO-VTP-MIB): At line 35 in /usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1
      Did not find 'vlanTrunkPortEntry' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
      Did not find 'VlanIndex' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
      Did not find 'vtpVlanEntry' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
      Did not find 'vtpVlanEditEntry' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
      Cannot find module (CISCO-QOS-PIB-MIB): At line 30 in /usr/share/snmp/mibs/CISCO-MEMORY-POOL-MIB.mib
      Did not find 'Percent' in module #-1 (/usr/share/snmp/mibs/CISCO-MEMORY-POOL-MIB.mib)

      Comment

      • winghello
        Junior Member
        • Jun 2019
        • 6

        #4
        I added "mibs +ALL" in /etc/snmp/snmp.conf and now it output less errors.


        [root@rc-mtl-zbx mibs]# snmptrap -v 3 -n "" -a MD5 -A mypassword -x DES -X mypassword -l authPriv -u myusername-e 0x8000000001020304 localhost 0 linkUp.0
        MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
        Cannot find module (AGENTX-MIB.txt): At line 0 in (none)
        Cannot find module (NOTIFICATION-LOG-MIB.txt): At line 0 in (none)
        Cannot find module (BRIDGE-MIB.txt): At line 0 in (none)
        Cannot find module (DISMAN-EVENT-MIB.txt): At line 0 in (none)
        Cannot find module (DISMAN-SCHEDULE-MIB.txt): At line 0 in (none)
        Cannot find module (DISMAN-SCRIPT-MIB.txt): At line 0 in (none)
        Cannot find module (EtherLike-MIB.txt): At line 0 in (none)
        Cannot find module (HCNUM-TC.txt): At line 0 in (none)
        Cannot find module (HOST-RESOURCES-MIB.txt): At line 0 in (none)
        Cannot find module (HOST-RESOURCES-TYPES.txt): At line 0 in (none)
        Cannot find module (IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt): At line 0 in (none)
        Cannot find module (IANAifType-MIB.txt): At line 0 in (none)
        Cannot find module (IANA-LANGUAGE-MIB.txt): At line 0 in (none)
        Cannot find module (IANA-RTPROTO-MIB.txt): At line 0 in (none)
        Cannot find module (IF-INVERTED-STACK-MIB.txt): At line 0 in (none)
        Cannot find module (IF-MIB.txt): At line 0 in (none)
        Cannot find module (INET-ADDRESS-MIB.txt): At line 0 in (none)
        Cannot find module (IP-FORWARD-MIB.txt): At line 0 in (none)
        Cannot find module (IP-MIB.txt): At line 0 in (none)
        Cannot find module (IPV6-FLOW-LABEL-MIB.txt): At line 0 in (none)
        Cannot find module (IPV6-ICMP-MIB.txt): At line 0 in (none)
        Cannot find module (IPV6-MIB.txt): At line 0 in (none)
        Cannot find module (IPV6-TCP-MIB.txt): At line 0 in (none)
        Cannot find module (IPV6-TC.txt): At line 0 in (none)
        Cannot find module (IPV6-UDP-MIB.txt): At line 0 in (none)
        Cannot find module (LM-SENSORS-MIB.txt): At line 0 in (none)
        Cannot find module (MTA-MIB.txt): At line 0 in (none)
        Cannot find module (NET-SNMP-AGENT-MIB.txt): At line 0 in (none)
        Cannot find module (NET-SNMP-EXAMPLES-MIB.txt): At line 0 in (none)
        Cannot find module (NET-SNMP-EXTEND-MIB.txt): At line 0 in (none)
        Cannot find module (NET-SNMP-MIB.txt): At line 0 in (none)
        Cannot find module (NET-SNMP-PASS-MIB.txt): At line 0 in (none)
        Cannot find module (NET-SNMP-TC.txt): At line 0 in (none)
        Cannot find module (NET-SNMP-VACM-MIB.txt): At line 0 in (none)
        Cannot find module (NETWORK-SERVICES-MIB.txt): At line 0 in (none)
        Cannot find module (NS-PRODUCTS.txt): At line 0 in (none)
        Cannot find module (NS-SMI.txt): At line 0 in (none)
        Cannot find module (RFC1155-SMI.txt): At line 0 in (none)
        Cannot find module (RFC1213-MIB.txt): At line 0 in (none)
        Cannot find module (RFC-1215.txt): At line 0 in (none)
        Cannot find module (RMON-MIB.txt): At line 0 in (none)
        Cannot find module (SCTP-MIB.txt): At line 0 in (none)
        Cannot find module (SMUX-MIB.txt): At line 0 in (none)
        Cannot find module (SNMP-COMMUNITY-MIB.txt): At line 0 in (none)
        Cannot find module (SNMP-FRAMEWORK-MIB.txt): At line 0 in (none)
        Cannot find module (SNMP-MPD-MIB.txt): At line 0 in (none)
        Cannot find module (SNMP-NOTIFICATION-MIB.txt): At line 0 in (none)
        Cannot find module (SNMP-PROXY-MIB.txt): At line 0 in (none)
        Cannot find module (SNMP-TARGET-MIB.txt): At line 0 in (none)
        Cannot find module (SNMP-USER-BASED-SM-MIB.txt): At line 0 in (none)
        Cannot find module (SNMP-USM-AES-MIB.txt): At line 0 in (none)
        Cannot find module (SNMP-USM-DH-OBJECTS-MIB.txt): At line 0 in (none)
        Cannot find module (SNMPv2-CONF.txt): At line 0 in (none)
        Cannot find module (SNMPv2-MIB.txt): At line 0 in (none)
        Cannot find module (SNMPv2-SMI.txt): At line 0 in (none)
        Cannot find module (SNMPv2-TC.txt): At line 0 in (none)
        Cannot find module (SNMPv2-TM.txt): At line 0 in (none)
        Cannot find module (SNMP-VIEW-BASED-ACM-MIB.txt): At line 0 in (none)
        Cannot find module (TCP-MIB.txt): At line 0 in (none)
        Cannot find module (TRANSPORT-ADDRESS-MIB.txt): At line 0 in (none)
        Cannot find module (TUNNEL-MIB.txt): At line 0 in (none)
        Cannot find module (UCD-DEMO-MIB.txt): At line 0 in (none)
        Cannot find module (UCD-DISKIO-MIB.txt): At line 0 in (none)
        Cannot find module (UCD-DLMOD-MIB.txt): At line 0 in (none)
        Cannot find module (UCD-IPFWACC-MIB.txt): At line 0 in (none)
        Cannot find module (UCD-SNMP-MIB.txt): At line 0 in (none)
        Cannot find module (UDP-MIB.txt): At line 0 in (none)
        Cannot find module (CISCO-LWAPP-TC-MIB): At line 45 in /usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib
        Cannot find module (CISCO-LWAPP-DOT11-MIB): At line 47 in /usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib
        Did not find 'CLApIfType' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
        Did not find 'CLDot11Channel' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
        Did not find 'CLApAssocFailureReason' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
        Did not find 'CLApDot11RadioSubband' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
        Did not find 'CLApDot11RadioRole' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
        Did not find 'cldRegulatoryDomain' in module #-1 (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
        Cannot find module (CISCO-VTP-MIB): At line 35 in /usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1
        Did not find 'vlanTrunkPortEntry' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
        Did not find 'VlanIndex' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
        Did not find 'vtpVlanEntry' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
        Did not find 'vtpVlanEditEntry' in module #-1 (/usr/share/snmp/mibs/CISCO-STP-EXTENSIONS-MIB.mib.1)
        Cannot find module (CISCO-QOS-PIB-MIB): At line 30 in /usr/share/snmp/mibs/CISCO-MEMORY-POOL-MIB.mib
        Did not find 'Percent' in module #-1 (/usr/share/snmp/mibs/CISCO-MEMORY-POOL-MIB.mib)
        Cannot find module (OLD-CISCO-SYSTEM-MIB): At line 10 in /usr/share/snmp/mibs/CISCOTRAP-MIB.mib
        Cannot find module (OLD-CISCO-INTERFACES-MIB): At line 12 in /usr/share/snmp/mibs/CISCOTRAP-MIB.mib
        Cannot find module (OLD-CISCO-TS-MIB): At line 14 in /usr/share/snmp/mibs/CISCOTRAP-MIB.mib
        Cannot find module (OLD-CISCO-TCP-MIB): At line 16 in /usr/share/snmp/mibs/CISCOTRAP-MIB.mib
        Did not find 'whyReload' in module #-1 (/usr/share/snmp/mibs/CISCOTRAP-MIB.mib)
        Did not find 'authAddr' in module #-1 (/usr/share/snmp/mibs/CISCOTRAP-MIB.mib)
        Did not find 'locIfReason' in module #-1 (/usr/share/snmp/mibs/CISCOTRAP-MIB.mib)
        Did not find 'tslineSesType' in module #-1 (/usr/share/snmp/mibs/CISCOTRAP-MIB.mib)
        Did not find 'tsLineUser' in module #-1 (/usr/share/snmp/mibs/CISCOTRAP-MIB.mib)
        Did not find 'loctcpConnElapsed' in module #-1 (/usr/share/snmp/mibs/CISCOTRAP-MIB.mib)
        Did not find 'loctcpConnInBytes' in module #-1 (/usr/share/snmp/mibs/CISCOTRAP-MIB.mib)
        Did not find 'loctcpConnOutBytes' in module #-1 (/usr/share/snmp/mibs/CISCOTRAP-MIB.mib)
        Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
        Undefined identifier: snmp near line 74 of /usr/share/snmp/mibs/CISCOTRAP-MIB.mib
        Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
        Undefined identifier: snmp near line 64 of /usr/share/snmp/mibs/CISCOTRAP-MIB.mib
        Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
        Undefined identifier: snmp near line 50 of /usr/share/snmp/mibs/CISCOTRAP-MIB.mib
        Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
        Undefined identifier: snmp near line 40 of /usr/share/snmp/mibs/CISCOTRAP-MIB.mib
        Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
        Undefined identifier: snmp near line 30 of /usr/share/snmp/mibs/CISCOTRAP-MIB.mib


        Comment

        • Hamardaban
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • May 2019
          • 2713

          #5
          The meaning of the errors is that when starting zabbix-server looks for compiled MIBS in the directory /usr/share/snmp/mibs and some others and can not find them, because they are simply not there. These errors do not affect the overall operation of zabbix-server, but if you use device monitoring over the SNMP Protocol in Zabbix, zabbix-server will not be able to use human-readable OIDs without the necessary MIB files. Perhaps the reason lies in the mib line: in the file /etc/snmp/snmp. conf, you just need to comment this line

          In short, configure the snmpd subsystem normally and everything will work for you.
          And zabix has nothing to do with it.

          PS
          sudo apt-get install snmp-mibs-downloader
          sudo download-mibs
          sudo sed -i "s/^\(mibs *:\).*/#\1/" /etc/snmp/snmp.conf
          sudo service snmpd restart
          Last edited by Hamardaban; 16-05-2020, 07:24.

          Comment

          • winghello
            Junior Member
            • Jun 2019
            • 6

            #6
            Hi Hamardaban,

            I added "
            mibs +ALL" to snmp.conf and now there is less errors. I don't think those warning is related to SNMPv3 traps. I am still not able to received SNMPv3 traps.

            Do you know if the V3 Engineid is mandatory? As I would like to apply that username to all Device but EngineID is unique.
            createUser -e 0x8000000001020304 myusername MD5 mypassword DES mypassword



            [root@rc-mtl-zbx ~]# snmptrapd -f - C -c /etc/snmp/snmptrapd.conf -Le
            Did not find 'cldRegulatoryDomain' in module CISCO-LWAPP-DOT11-MIB (/usr/share/snmp/mibs/CISCO-LWAPP-AP-MIB.mib)
            Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
            Undefined identifier: snmp near line 74 of /usr/share/snmp/mibs/CISCOTRAP-MIB.mib.1
            Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
            Undefined identifier: snmp near line 64 of /usr/share/snmp/mibs/CISCOTRAP-MIB.mib.1
            Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
            Undefined identifier: snmp near line 50 of /usr/share/snmp/mibs/CISCOTRAP-MIB.mib.1
            Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
            Undefined identifier: snmp near line 40 of /usr/share/snmp/mibs/CISCOTRAP-MIB.mib.1
            Unlinked OID in CISCOTRAP-MIB: snmp# ::= { snmp 0 }
            Undefined identifier: snmp near line 30 of /usr/share/snmp/mibs/CISCOTRAP-MIB.mib.1
            couldn't open - -- errno 2 ("No such file or directory")

            Comment

            Working...