summaryrefslogtreecommitdiffstats
path: root/web/input/doc/faq/nagiosmib.md
blob: 13fcb9deed0b1de43df6c976f76e44fc5081b07b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
title: Modifying NagiosMIB
parent: FAQ
---

# 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:

* make
* smistrip and smilint, part of the [libsmi project][libsmi]

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.

[libsmi]: http://www.ibr.cs.tu-bs.de/projects/libsmi/ "libsmi"

<!--% # vim:set filetype=markdown textwidth=78 joinspaces: # %-->