GitHub

How do I modify NagiosMIB?

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:

On Debian, you'd run:

$ apt-get install smistrip smitools

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

These are probably okay.

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

Update the CHANGES file and commit.

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