Announcement

Collapse
No announcement yet.

Adding SNMP MIBs

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding SNMP MIBs

    I'm about at the end of my rope here, so I figured it was time to ask for help.

    I'm trying to get up SNMP monitoring of our Liebert Nfinity UPS.

    I started by following section 19.6 of the manual.

    On step 2, I discovered that the MIBs for this were not installed. The UPS uses UPS-MIB, from RFC1628. I found instructions on the net-snmp wiki on adding MIBs.

    UPS-MIB.txt has been added to the mibs directory and is loaded, but is throwing errors.

    "snmptranslate -IR -On upsOutputSource" works with errors:

    Code:
    No log handling enabled - turning on stderr logging
    Unlinked OID in UPS-MIB: upsMIB ::= { mib-2 33 }
    Undefined identifier: mib-2 near line 13 of /usr/share/snmp/mibs/UPS-MIB.txt
    .1.3.6.1.2.1.33.1.4.1
    Here is the tail of snmpget -Dparse-mibs -v 1 -c LiebertEM x.x.x.x upsBatteryStatus:

    Code:
    parse-mibs: Parsing MIB: 16 UPS-MIB
    parse-mibs: Module SNMPv2-TC already loaded
    parse-mibs: #### adding Module 16 'DisplayString' 33
    parse-mibs: #### adding Module 16 'TimeStamp' 33
    parse-mibs: #### adding Module 16 'TimeInterval' 33
    parse-mibs: #### adding Module 16 'TestAndIncr' 33
    parse-mibs: #### adding Module 16 'AutonomousType' 33
    parse-mibs: Processing IMPORTS for module 16 UPS-MIB
    parse-mibs:   Processing import: DisplayString
    parse-mibs:   Processing import: TimeStamp
    parse-mibs:   Processing import: TimeInterval
    parse-mibs:   Processing import: TestAndIncr
    parse-mibs:   Processing import: AutonomousType
    Unlinked OID in UPS-MIB: upsMIB ::= { mib-2 33 }
    Undefined identifier: mib-2 near line 13 of /usr/share/snmp/mibs/UPS-MIB.txt
    Error in packet
    Reason: (noSuchName) There is no such variable name in this MIB.
    Failed object: UPS-MIB::upsBatteryStatus
    I thought maybe this wouldn't be a big deal if I just used the OID in zabbix. No dice:

    Code:
    Unlinked OID in UPS-MIB: upsMIB ::= { mib-2 33 }
    Undefined identifier: mib-2 near line 13 of /usr/share/snmp/mibs/UPS-MIB.txt
       973:20110324:130237.541 server #3 started [Poller. SNMP:YES]
    From what I can tell, this means UPS-MIB is referencing something that isn't imported properly? Something to do with mib-2?

    Line 13 of UPS-MIB starts with:

    Code:
    upsMIB MODULE-IDENTITY
           LAST-UPDATED "9402230000Z"
           ORGANIZATION "IETF UPS MIB Working Group"
           CONTACT-INFO
                  "        Jeffrey D. Case
    
                    Postal: SNMP Research, Incorporated
                            3001 Kimberlin Heights Road
                            Knoxville, TN  37920
                            US
    
                       Tel: +1 615 573 1434
                       Fax: +1 615 573 9197
    
                    E-mail: [email protected]"
           DESCRIPTION
                   "The MIB module to describe Uninterruptible Power
                   Supplies."
           ::= { mib-2 33 }
    Any help fixing this would be greatly appreciated. My google-fu has failed me.
    Last edited by jterhune; 24-03-2011, 23:55.

    #2
    The single relevant result I found was in Japanese, but Google translate was successful.

    Changing

    Code:
    OBJECT-IDENTITY, Counter32, Gauge32, Integer32
    to
    Code:
    OBJECT-IDENTITY, Counter32, Gauge32, Integer32, mib-2
    in UPS-MIB.txt fixed this.
    Last edited by jterhune; 14-06-2011, 00:59.

    Comment

    Working...
    X