You are here

Loading mibs into Opsview

6 posts / 0 new
Last post
jasond_1
jasond_1's picture
Loading mibs into Opsview

We have a few vendor supplied mib files. I have placed them in the /usr/share/snmp/mib and in the /usr/local/nagios/snmp/load locations.  When I setup a service check and run the snmp walk the OIDs are not in a human readable format is there something else that I am missing? Any help would be appriciated.

 

Thanks,

Jason

Duncan Ferguson
dferguson's picture
This would depend on how you

This would depend on how you have your system configured.

You may have added those paths to snmptrapd.conf so "traps" can make use of them, but not any utility that does a "get" such as snmpget or snmpwalk. 

Can you also check you have the paths added to the snmp.conf file?  This can be checked by using:

$ snmptranslate -Dread_config SNMPv2

and looking at the mib paths checked.  For example, on my ubuntu system where /etc/snmp/snmnp.conf has the line

mibs :

which disables all search paths, I see the following:

$ snmptranslate -Dread_config SNMPv2 2>&1 | grep mibs
read_config:line: /etc/snmp/snmp.conf:4 examining: mibs :
read_config:parser: Found a parser.  Calling it: mibs / :
read_config:initmib: using mibs: :
read_config:line: /etc/snmp/snmp.conf:4 examining: mibs :

which shows no paths have been examined.  Commenting out the "mib :" line in the config file and rerunning the above command then shows a significant number of paths are then searched.

  Duncs

jasond_1
jasond_1's picture
When I run the snmp translate

When I run the snmp translate command I get a bunch of errors:

Cannot find module (SNMPv2-TC): At line 10 in /usr/share/snmp/mibs/UCD-DLMOD-MIB.txt

Cannot find module (SNMPv2-SMI): At line 34 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt

Cannot find module (SNMPv2-TC): At line 37 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt

Did not find 'enterprises' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)

Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)

Did not find 'TruthValue' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)

Undefined identifier: enterprises near line 39 of /usr/share/snmp/mibs/UCD-SNMP-MIB.txt

Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/UCD-DLMOD-MIB.txt)

Did not find 'ucdExperimental' in module UCD-SNMP-MIB (/usr/share/snmp/mibs/UCD-DLMOD-MIB.txt)

Undefined identifier: ucdExperimental near line 13 of /usr/share/snmp/mibs/UCD-DLMOD-MIB.txt

Cannot find module (SNMPv2-TC): At line 15 in /usr/share/snmp/mibs/UCD-DISKIO-MIB.txt

Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/UCD-DISKIO-MIB.txt)

Did not find 'ucdExperimental' in module UCD-SNMP-MIB (/usr/share/snmp/mibs/UCD-DISKIO-MIB.txt)

Undefined identifier: ucdExperimental near line 19 of /usr/share/snmp/mibs/UCD-DISKIO-MIB.txt

Cannot find module (SNMPv2-TC): At line 15 in /usr/share/snmp/mibs/LM-SENSORS-MIB.txt

and alot more also in the /etc/snmp/snmp.conf the mibs line is not commented out, but I tried commenting it out and it didn't seem to make much of a difference.  Sorry if this is a simple issue I've just never tried loading mibs in Opsview.

 

Thanks again,

Jason

 

jasond_1
jasond_1's picture
First time posting to the

First time posting to the forums too, I don't think I did my last post right, so lets try again.

When I run the snmp translate command I get a bunch of errors:

Cannot find module (SNMPv2-TC): At line 10 in /usr/share/snmp/mibs/UCD-DLMOD-MIB.txt

Cannot find module (SNMPv2-SMI): At line 34 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt

Cannot find module (SNMPv2-TC): At line 37 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt

Did not find 'enterprises' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)

Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)

Did not find 'TruthValue' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)

Undefined identifier: enterprises near line 39 of /usr/share/snmp/mibs/UCD-SNMP-MIB.txt

Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/UCD-DLMOD-MIB.txt)

Did not find 'ucdExperimental' in module UCD-SNMP-MIB (/usr/share/snmp/mibs/UCD-DLMOD-MIB.txt)

Undefined identifier: ucdExperimental near line 13 of /usr/share/snmp/mibs/UCD-DLMOD-MIB.txt

Cannot find module (SNMPv2-TC): At line 15 in /usr/share/snmp/mibs/UCD-DISKIO-MIB.txt

Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/UCD-DISKIO-MIB.txt)

Did not find 'ucdExperimental' in module UCD-SNMP-MIB (/usr/share/snmp/mibs/UCD-DISKIO-MIB.txt)

Undefined identifier: ucdExperimental near line 19 of /usr/share/snmp/mibs/UCD-DISKIO-MIB.txt

Cannot find module (SNMPv2-TC): At line 15 in /usr/share/snmp/mibs/LM-SENSORS-MIB.txt

and alot more also in the /etc/snmp/snmp.conf the mibs line is not commented out, but I tried commenting it out and it didn't seem to make much of a difference.  Sorry if this is a simple issue I've just never tried loading mibs in Opsview.

 

Thanks again,

Jason

Duncan Ferguson
dferguson's picture
Unfortunately, this is the

Unfortunately, this is the reality of SNMP MIB's - everyone seems to have their own standard so they don't all cleanly work together...

The snmptranslate command I gave had a spurious OID to look up so it will error.  Have you used the translate command against an OID you believe should be working?

  Dimcs

jasond_1
jasond_1's picture
I have and I just end up with

I have and I just end up with basically the same set of errors, maybe my best bet is to open a suport case with Opsview so they can help me get this working since I haven't messed with mib files at all in Opsview.

 

Thanks,

Jason