Re: Extending snmpd agent with a private enterprise MIB
Philippe,
Thanks for the help. I found my problem with the method I first tried
below, my /etc/snmp/snmpd.conf file was not correct to allow me to read the
MIB. I changed this and all was well.
On the up-side, I used your instructions and found a MUCH better way to
extend the MIB. Life is good.
Thanks again,
Bill Bell
<whbell@rockwellcollins.com> writes:
> Hello list,
>
>
> I have a task of incorporating a private enterprise MIB into our Debian
> Woody system. My goal is to have an updated set of
snmp*4.2.3-2.custom.deb
> files so I can move these changes out to our production hardware. I have
> been reading extensively on the net-snmp site on how to make this
extension
> to the code and on the Debian site on how to manage customizing a Debian
> source package.
>
> I have the usd-snmp_4.2.3-2 source tree from the "apt-get source snmp"
> command. I have my ENTERPRISE-MIB.txt compiled using mib2c giving me the
> .h and .c files and I have made needed edits to these two files. I use
dch
> to update the debian/changelog file and then I use dpkg-buildpackage to
> build my custom snmp packages.
>
> All of this seems to work except that when I use "snmpget myserver public
> lruPassFail.0" it looks like my MIB is not installed.
>
> Error in packet
> Reason: (noSuchName) There is no such variable name in this MIB
>
> I have this MIB successfully included in a net-snmp 5.0.7 source tar
> package, but I want to use the stable Woody version and the Debian
> packaging system for managing my changes.
>
> Any help or suggestions is greatly appreciated,
You don't need to change the debian package at all. Just compile your
enterprise MIB as a shared library, drop it into /usr/local/lib and
add this line to /etc/snmp/snmpd.local.conf:
dlmod myMIB /usr/local/lib/myMIB.so
Phil.
Reply to: