How do I make changes on nagiosmib?

Posted by tonvoon on 2 April 2009 - 7:51pm

Nagiosmib is a set of MIBs for Nagios to allow traps sent from Nagios to be recognized by other NMSes.

To develop, the requirements are:
* make
* smistrip and smilint, part of the libsmi project (http://www.ibr.cs.tu-bs.de/projects/libsmi)

(On Debian Etch, apt-get install libsmi2 libsmi2-common to get the libsmi software.)

At the top level of nagiosmib, run make && make test.

If you get errors like:

./MIB/NAGIOS-ROOT-MIB:4: failed to locate MIB module `SNMPv2-SMI'
./MIB/NAGIOS-ROOT-MIB:6: failed to locate MIB module `SNMPv2-TC'

then you are missing some prerequisite MIBs. These need to be installed from the libsmi project.

Currently there are some warnings such as:

./MIB/NAGIOS-ROOT-MIB:35: warning: current type `NotifyType' is not referenced in this module
./MIB/NAGIOS-NOTIFY-MIB:153: warning: use Integer32 instead of INTEGER in SMIv2

I think these are okay.

To change the mib information, update the src-mib directory and run make to generate the MIBs. Run make test to check.

Update CHANGES file and commit.

To release, change the version number in Makefile and run make tarball. Publish tarball and md5sum on SF. Create news story on this site. Link back to here from tarball release.