Archived community.zenoss.org | full text search
Skip navigation
697 Views 0 Replies Latest reply: Jan 9, 2014 6:30 PM by Peter Hunt RSS
Peter Hunt Rank: White Belt 1 posts since
Jun 23, 2010
Currently Being Moderated

Jan 9, 2014 6:30 PM

How do I Model SNMP tables with multiple indices?

I am interested in adding a modeler plugin that can cope with an SNMP table that has 2 different indices. I guess this would be considered a sub-component in the Zenoss framework which I am not sure exists.  For example, I have a MIB that contains a table of Environmental Monitoring  Devices (EMDs). They in turn can contain multiple Digital I/Os (DIO's). Here is a snippet from my MIB. 

 

ogEmdDioTable OBJECT-TYPE
     SYNTAX SEQUENCE OF EmdDioEntry
     MAX-ACCESS not-accessible
     STATUS     current
     DESCRIPTION
           "Ths Digital I/O status table."
     ::= { ogStatus 12 }

ogEmdDioEntry OBJECT-TYPE
     SYNTAX EmdDioEntry
     MAX-ACCESS not-accessible
     STATUS current
     DESCRIPTION
          "Digital I/O status entry"
     INDEX { ogEmdIndex, 
          ogEmdDioIndex }
     ::= { ogEmdDioTable 1 }

EmdDioEntry ::= SEQUENCE {
        ogEmdDioIndex        Integer32,
        ogEmdDioEmd          OBJECT IDENTIFIER,
        ogEmdDioName         DisplayString,
        ogEmdDioDescription  DisplayString, 
        ogEmdDioType         INTEGER,
        ogEmdDioDirection    INTEGER,
        ogEmdDioState        INTEGER,
        ogEmdDioTriggerMode  INTEGER,
        ogEmdDioCounter      Counter32
}

ogEmdDioIndex OBJECT-TYPE

 

 

So the EMD table is straight forward to model however I have not been able to find an interface that can deal with the 2 indices that are used for EMD DIO entries. The snmpGetTableMaps member of SnmpPlugin only seems to handle 1 index, is there an existing plugin interface that can do this or Is a Sub-Component something I can extend zenoss to support?

More Like This

  • Retrieving data ...

Legend

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