Ad Widget

Collapse

How to use UCD-SNMP-MIB?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Crazy Marty
    Member
    • Sep 2007
    • 75

    #1

    How to use UCD-SNMP-MIB?

    I'm confused about how to create Items to represent elements of the arrays in the UCD-SNMP-MIB. For instance, the filesystem space array:

    UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1
    UCD-SNMP-MIB::dskIndex.2 = INTEGER: 2
    UCD-SNMP-MIB::dskPath.1 = STRING: /
    UCD-SNMP-MIB::dskPath.2 = STRING: /boot
    UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/mapper/VolGroup00-LogVol00
    UCD-SNMP-MIB::dskDevice.2 = STRING: /dev/sda1
    UCD-SNMP-MIB::dskMinimum.1 = INTEGER: 1
    UCD-SNMP-MIB::dskMinimum.2 = INTEGER: 1
    UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: -1
    UCD-SNMP-MIB::dskMinPercent.2 = INTEGER: -1
    UCD-SNMP-MIB::dskTotal.1 = INTEGER: 74763432
    UCD-SNMP-MIB::dskTotal.2 = INTEGER: 101086
    UCD-SNMP-MIB::dskAvail.1 = INTEGER: 57196340
    UCD-SNMP-MIB::dskAvail.2 = INTEGER: 62978
    UCD-SNMP-MIB::dskUsed.1 = INTEGER: 13769284
    UCD-SNMP-MIB::dskUsed.2 = INTEGER: 32889
    UCD-SNMP-MIB::dskPercent.1 = INTEGER: 19
    UCD-SNMP-MIB::dskPercent.2 = INTEGER: 34
    UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 4
    UCD-SNMP-MIB::dskPercentNode.2 = INTEGER: 0
    UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: 0
    UCD-SNMP-MIB::dskErrorFlag.2 = INTEGER: 0
    UCD-SNMP-MIB::dskErrorMsg.1 = STRING:
    UCD-SNMP-MIB::dskErrorMsg.2 = STRING:

    I understand how to convert those to numeric OIDs, but I'd like to refer to something like "dskTotal[/]" without having it hardwired to index 1 in the MIB. Can someone shed some light on how to do this?
  • maxpower
    Member
    • Jul 2007
    • 31

    #2
    i didn't test UCD maps but with TCP it works e.g. like
    SNMP OID = TCP-MIB::tcpCurrEstab
    Key = tcpCurrEstab


    for UCD it should be maybe UCD-SNMP-MIB::ssCpuRawIdle

    Comment

    • Crazy Marty
      Member
      • Sep 2007
      • 75

      #3
      The question is about the arrays, not necessarily just in the UCD MIB. I started the title with a different question in mind, but managed to figure that answer out while I was typing. So I moved to the next question. Sorry for the confusion.

      Comment

      Working...