Translation of SNMP traps dosen't work in check_mk

This forum was archived to /woltlab and is now in read-only mode.
  • I'm working on processing SNMP traps from CISCO devices by check_mk 1.2.8p20 version. The configuration is in progress and I've have already untranslated traps in Event Console.

    Here ( ) is simple instruction how to do it but it doesn't work. I followed instruction contained in 7.3 and 7.4 chapter and still nothing. I have around 200 MIB files from

    In directory /omd/sites/mySite/local/share/check_mk/compiled_mibs are all of my mibs complied by check_mk, but I had a problem with uploading:

    1. Failed to compile your module: no module "ADSL-LINE-MIB" in symbolTable at MIB ADSL-DMT-LINE-MIB


    1. You are missing the needed pysmi python module (cannot import name defaultMibPackageds).

    I've solved it by clue founded in this page:

    A few days ago when I turned on SNMP trap translation first time (7.3, ) it seemed to partialy work.

    For instance:

    1. SNMPv2-SMI::enterprises.9.0.1 SNMPv2-MIB::sysUpTime.0: 217843968 , SNMP-COMMUNITY-MIB::snmpTrapAddress.0: , SNMP-COMMUNITY-MIB::snmpTrapCommunity.0: , SNMPv2-MIB::snmpTrapEnterprise.0: SNMPv2-SMI::enterprises.9 , SNMPv2-SMI::enterprises. 6, SNMPv2-SMI::mib- 8, SNMPv2-SMI::enterprises. 408, SNMPv2-SMI::enterprises. 2565, SNMPv2-SMI::enterprises. 1456, SNMPv2-SMI::enterprises. minera

    but now traps are untranslated although appropriate MIBs are loaded and SNMP traps translation option is turned on:

    1. 455413843, ¬, ,, 6, 1, 4246, 23, 388,

    Anybody have some clue for me?

    PS. All changes in check_mk were saved and config was reloaded.

  • I've already solve this problem.

    At first: wrote:

    Well, MIB files with syntax errors and inconsistencies are all too common :-(

    Even Ciscos have errors in them...

    Niels Baggesen -Lead developer ; Net-SNMP; 1998-until now

    I had there many dependenices and few invalid MiB's file. I've splited it to 5 packages, eliminated invalid MIB's files and now it's work fine.

    Helpfull tips:

    Some MIB's files can break working of whole mechanism of SNMP trap translation in check_mk. The best way to valid correctness of MIB file is upload single file, restart omd (is required) and check recently event history. If traps has stopped translating, in majority of cases we can reverse this change by remove files containg name of uploaded MIB from paths:

    1. /omd/sites/***SiteName***/local/share/check_mk/compiled_mibs
    2. /omd/sites/***SiteName***/local/share/check_mk/mibs
    3. /omd/sites/***SiteName***/local/share/snmp/mibs

    And restart omd:

    1. omd restart
    2. omd status

    If not all of components are running try command:

    1. omd start

    The post was edited 2 times, last by stalleja ().