Hi everybody,
I recently installed net-snmp 5.0.8 (on RedHat 7.3) and everything seemed to
work just fine.
I've been hunting around on the Internet to find all the according MIBs for the
hosts I wanna monitor.
As discribed on your page, I copied the mibs to /usr/local/share/snmp/mibs/ and
also to /root/.snmp/mibs.
And I created a file /.snmp/snmp.conf where I listed all the new MIBS, as
described. Now, when I do eg. snmptranslate:
@vallejo mibs]# snmptranslate -m orinoco.mib -IR -On orinoco
net-snmp doesn't seem to find the MIB:
Unknown object identifier: orinoco
Only if I do:
snmptranslate -m ./orinoco.mib -IR -On orinoco
and tell it exactly where the MIB is it manages to translate the object
thus, it doesn't find the MIB by itself.
Anybody got an Idea, what could be wrong with my configuration?
Thanks
Daniel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
What is the name of the MIB?
Not the name of the file - the name of the MIB itself.
In other words, if you look inside the file, what does it say
immediately before the token 'DEFINITIONS' ?
That's what you should use for the -m value.
Dave
> Hello Dave,
>
> Thanks for the help.
> Well, I checked all the naming (in /usr/local/share/snmp/mibs/ and in the
> /root/.snmp/snmp.conf file.
> But still, it only works if I'm giving it the exact path to the MIB and the
> exact file-name (It doesn't find the MIB by the MIB-name) with the
> -m option. I also tried to set the MIBS variable to ALL and run snmptranslate
> without the m option. Didn't work either.
> So it seems that snmptranslate doesn't find the MIB by itself.
> Do you have any idea what could be wrong?
Well, you haven't actually given me much to go on - except "it doesn't work".
What *is* the name of the MIB - it shouldn't be "orinoco.mib" (as that's
not a valid MIB module name).
Perhaps if you let me have
a) a copy of the MIB file
b) the output of running
snmptranslate -Dparse-mibs -IR -On orinoco