Skip navigation
4311 Views 14 Replies Latest reply: Jan 30, 2012 4:57 PM by jcurry RSS
Yasha Zislin Rank: Green Belt 139 posts since
Oct 20, 2011
Currently Being Moderated

Jan 25, 2012 5:15 PM

Custom MIBS

I have loaded a custom MIB into Zenoss but when SNMP traps arrive Zenoss doesnt print the description. It displays the OID of the trap.

I've checked in the MIB that the trap exists.

It feels like this MIB didnt get loaded completely.

 

Thanks.

  • dpetzel Rank: Brown Belt 1,141 posts since
    Oct 17, 2010
    Currently Being Moderated
    1. Jan 25, 2012 9:34 PM (in response to Yasha Zislin)
    Re: Custom MIBS

    I don't have any immediate ideas, but a little more info might invoke answers from someone that knows more about custom MIBS than I.

     

    What version of Zenoss, which OS? Assuming you loaded the MIBS using the zenmib command? or did you take some other steps? Is there any output from the mibload (good or bad)? Have you tried loading the mib again (in case it did silently for some reason the 1st time)

     

    Sorry to not be more helpful, but shy of someone else having the same experience a little more information might invoke some ideas.

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    2. Jan 26, 2012 6:28 AM (in response to Yasha Zislin)
    Re: Custom MIBS

    As dpetzel syas, do provide us with a little more info.

     

    Mib loading is one of the flakiest parts of Zenoss IMHO.  Check on the Mibs page in the GUI - do you ACTUALLY have nodes and traps/notifications loaded - you should see numbers for each.

     

    Mibs are a bit of a black art whatever your management system.  If you look at the source file, there is usually an IMPORTS section near the top whichare pre-requisites for loading a Mib.  If you have an enterprise specific Mib, it may have all sorts of pre-reqs from both standard mibs like SNMPv2-SMI, RFC1213, .... and pre-reqs from other enterprise specific mibs - which may themselves have pre-reqs.  You need to get all the prereqs loaded up first, in the right order, before you actually get your mib loaded successfully.

     

    I always do mib loading through the command line rather than the GUI because then you do at least see failure messages.  Copy your mib source file to $ZENHOME/../common/share/mibs/site (I have a feeling that this directory may vary slightly depending on your architecture and Zenoss version - dig around until you find a mibs directory that has subdirs for ietf, site and 2-or-3 others). As the zenoss user, I use

    zenmib run -v 10 <mib to load>

     

    Even if you have pre-reqs loaded, I have found that sometimes you need to specify pre-reqs on the zenmib line so if you are still having problems loading mib C, having already loaded Mibs A and B, then try:

    zenmib run -v 10 A B C

     

    Cheers,

    Jane

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    4. Jan 26, 2012 11:30 AM (in response to Yasha Zislin)
    Re: Custom MIBS

    What MIB are you trying to load?

    Cheers,

    Jane

  • mwcotton Rank: Brown Belt 563 posts since
    Apr 23, 2008
    Currently Being Moderated
    6. Jan 26, 2012 4:43 PM (in response to Yasha Zislin)
    Re: Custom MIBS

    From my experiance many mibs released by manufacturers dont work and arent tested.

    I suggested downloading a "mib browser" and loading the mib into it, just as a test to make sure its valid.

     

    like this: http://www.manageengine.com/products/mibbrowser-free-tool/index.html

  • mwcotton Rank: Brown Belt 563 posts since
    Apr 23, 2008
    Currently Being Moderated
    8. Jan 27, 2012 5:00 PM (in response to Yasha Zislin)
    Re: Custom MIBS

    post an example of what one of your traps look like on the event list.

  • mwcotton Rank: Brown Belt 563 posts since
    Apr 23, 2008
    Currently Being Moderated
    10. Jan 27, 2012 8:04 PM (in response to Yasha Zislin)
    Re: Custom MIBS

    I am at a loss, when you loaded the mib did you get any errors ? Like other mibs missing?

  • mwcotton Rank: Brown Belt 563 posts since
    Apr 23, 2008
    Currently Being Moderated
    12. Jan 30, 2012 4:49 PM (in response to Yasha Zislin)
    Re: Custom MIBS

    Yes, I understand your issue.

    I have seen it but usually its caused by a bad mib or when loading the mib some other mibs it depends on is missing.

    I am assuming you have restarted zenoss since this problem began

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    14. Jan 30, 2012 4:57 PM (in response to Yasha Zislin)
    Re: Custom MIBS

    If you have some standard Linux boxes with net-snmp, import the net-snmp MIB and you should see translated enterprise-specific traps when you stop / start the snmpd agent.

     

    In my experience, most of these do work.

     

    Cheers,

    Jane

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points