Failed to parse MIB file /usr/share/snmp/mibs/

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
sartecat
Posts: 33
Joined: Tue Jun 20, 2017 1:11 pm

Failed to parse MIB file /usr/share/snmp/mibs/

Post by sartecat »

I was looking through google and found to enter export MIBS=+[File] and export MIBDIRS=+[Directory]. I entered the directory for the file by mistake and now I'm getting "Failed to parse MIB file /usr/share/snmp/mibs/" error at the beginning of an snmpwalk. How do I fix this?
Last edited by sartecat on Tue Jul 25, 2017 4:54 pm, edited 1 time in total.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Failed to parse MIB file /usr/share/snmp/mibs/

Post by tgriep »

Run the unset command to clear out the environment variable and then rerun the export again with the correct data.

Code: Select all

unset MIBS
unset MIBDIRS
Be sure to check out our Knowledgebase for helpful articles and solutions!
sartecat
Posts: 33
Joined: Tue Jun 20, 2017 1:11 pm

Re: Failed to parse MIB file /usr/share/snmp/mibs/

Post by sartecat »

If I have all my MIBS in the /usr/share/snmp/mibs directory, do I still need to export each MIB file?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Failed to parse MIB file /usr/share/snmp/mibs/

Post by tgriep »

No, you should not have to export each MIB file. You should only need the MIBDIRS environment set.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked