addmib

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
krw
Posts: 70
Joined: Tue May 29, 2012 2:01 pm

addmib

Post by krw »

We have some PVX BTI 7000 optical shelves that we need to monitor for traps.

I snagged their latest MIB's and used addmib like I have in the past for other
MIBs and they don't import.

I don't get any errors when adding the mib, but this is the only line that shows up
in snmptt.conf:

MIB: BTI-MIB (file:./bti-oid.my) converted on Wed Apr 17 15:19:47 2013 using snmpttconvertmib v1.3

The whole mib is not very long:

BTI-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-IDENTITY, enterprises
FROM SNMPv2-SMI;

btiMib MODULE-IDENTITY
LAST-UPDATED "201203091200Z" -- Friday, March 9, 12:00:00 EST 2012
ORGANIZATION "BTI Systems Inc."
CONTACT-INFO "Technical Support
BTI Systems Inc.
50 Northside Road
Ottawa, Ontario, Canada K2H 5Z6
(613) 248-9154
support@btisystems.com"
DESCRIPTION "This is a top-level MIB for BTI whose purpose is to lay out
the top-level objects in the OID hierarchy"
REVISION "201203091200Z" -- Friday, March 9, 12:00:00 EST 2012
DESCRIPTION "Added identifiers for btiHoard, bti800 branches."
REVISION "201202101200Z" -- Friday, February 10, 12:00:00 EST 2012
DESCRIPTION "Moved PSM to btiProducts 6, to avoid PVX overlap."
REVISION "201109261200Z" -- Monday, September 26, 12:00:00 EST 2011
DESCRIPTION "Added btiPSM node."
REVISION "200805301200Z" -- Friday, May 30, 12:00:00 EST 2008
DESCRIPTION "Changed name of netstender node to bti7000.
Removed obsolete ols node."
REVISION "200708271200Z" -- Monday, August 27, 12:00:00 EST 2007
DESCRIPTION "Added btiems node."
REVISION "200507251200Z" -- Monday, July 25, 12:00:00 EST 2005
DESCRIPTION "Updated Contact Info in Module Identity"
REVISION "200409231200Z" -- Thursday, September 23, 12:00:00 EST 2004
DESCRIPTION "MIB Updated for Netstender Rel 3.0: Updated object hierarchy
to support Netstender 1030 - name of object identifier
netstender2060 generalized to netstender"
REVISION "200312011200Z" -- Monday, December 1, 12:00:00 EST 2003
DESCRIPTION "The initial version of this MIB module."

::= { btiModules 1 }


btiSystems OBJECT IDENTIFIER ::= { enterprises 18070 }

btiModules OBJECT IDENTIFIER ::= { btiSystems 1 }
btiProducts OBJECT IDENTIFIER ::= { btiSystems 2 }

bti7000 OBJECT IDENTIFIER ::= { btiProducts 2 }
btiems OBJECT IDENTIFIER ::= { btiProducts 4 }
btiPSM OBJECT IDENTIFIER ::= { btiProducts 6 }
widecastCache OBJECT IDENTIFIER ::= { btiProducts 7 }
bti800 OBJECT IDENTIFIER ::= { btiProducts 8 }


END -- BTI TOP LEVEL OID REGISTRATION MODULE

Why wouldn't this MIB import? Or is there nothing in this MIB to really import?
When I try to actually add a full MIB for the gear I get two errors from addmib:

Cannot find module (BTI-MIB): At line 58 in ./bti7000.my
Cannot find module (BTI-TC-MIB): At line 70 in ./bti7000.my

BTI-TC-MIB also does the same thing as BTI-MIB. Addmib appears to add it but
I just end up with one line in snmptt.conf that is the same as what appears for
BTI-MIB.

I have opened a ticket with BTI, but thought I'd see if anyone might have a better
understanding what is wrong here.

Thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: addmib

Post by scottwilkerson »

krw wrote:When I try to actually add a full MIB for the gear I get two errors from addmib:

Cannot find module (BTI-MIB): At line 58 in ./bti7000.my
Cannot find module (BTI-TC-MIB): At line 70 in ./bti7000.my
Are these MIBs in the standard mib directory (usually /usr/share/snmp/mibs/ )?
It appears that the dependent MIBs BTI-MIB & BTI-TC-MIB cannot be found
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
krw
Posts: 70
Joined: Tue May 29, 2012 2:01 pm

Re: addmib

Post by krw »

scottwilkerson wrote:
krw wrote:When I try to actually add a full MIB for the gear I get two errors from addmib:

Cannot find module (BTI-MIB): At line 58 in ./bti7000.my
Cannot find module (BTI-TC-MIB): At line 70 in ./bti7000.my
Are these MIBs in the standard mib directory (usually /usr/share/snmp/mibs/ )?
It appears that the dependent MIBs BTI-MIB & BTI-TC-MIB cannot be found
No they were not in the the mib directory.

In previous uses of addmib, I could have sworn that they were added automatically to /usr/share/snmp/mibs
when I ran addmib <mib> before. All the mibs I use are in there though, but I have no recollection of adding
them to /usr/share/snmp/mibs.

I did check, and no they were not in the mib directory. I copied them over and reran addmib on all the mib
files and I did not get any errors.

Thanks,
Keith
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: addmib

Post by scottwilkerson »

Nice
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked