diff options
Diffstat (limited to 'web/input/doc/faq/nagiosmib.md')
| -rw-r--r-- | web/input/doc/faq/nagiosmib.md | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/web/input/doc/faq/nagiosmib.md b/web/input/doc/faq/nagiosmib.md new file mode 100644 index 0000000..b2f34ae --- /dev/null +++ b/web/input/doc/faq/nagiosmib.md | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | title: Modifying NagiosMIB | ||
| 2 | parent: FAQ | ||
| 3 | --- | ||
| 4 | |||
| 5 | # How do I modify NagiosMIB? | ||
| 6 | |||
| 7 | Nagiosmib is a set of MIBs for Nagios to allow traps sent from Nagios to be | ||
| 8 | recognized by other NMSes. | ||
| 9 | |||
| 10 | To develop, the requirements are: | ||
| 11 | |||
| 12 | * make | ||
| 13 | * smistrip and smilint, part of the [libsmi project][libsmi] | ||
| 14 | |||
| 15 | On Debian, you'd run: | ||
| 16 | |||
| 17 | apt-get install smistrip smitools | ||
| 18 | |||
| 19 | If you get errors like: | ||
| 20 | |||
| 21 | ./MIB/NAGIOS-ROOT-MIB:4: failed to locate MIB module `SNMPv2-SMI' | ||
| 22 | ./MIB/NAGIOS-ROOT-MIB:6: failed to locate MIB module `SNMPv2-TC' | ||
| 23 | |||
| 24 | then you are missing some prerequisite MIBs. These need to be installed from | ||
| 25 | the libsmi project. | ||
| 26 | |||
| 27 | Currently there are some warnings such as: | ||
| 28 | |||
| 29 | ./MIB/NAGIOS-ROOT-MIB:35: warning: current type `NotifyType' is not referenced in this module | ||
| 30 | ./MIB/NAGIOS-NOTIFY-MIB:153: warning: use Integer32 instead of INTEGER in SMIv2 | ||
| 31 | |||
| 32 | These are probably okay. | ||
| 33 | |||
| 34 | To change the MIB information, update the `src-mib` directory and run `make` | ||
| 35 | to generate the MIBs. Run `make` `test` to check. | ||
| 36 | |||
| 37 | Update the `CHANGES` file and commit. | ||
| 38 | |||
| 39 | To release, change the version number in the `Makefile` and run `make` | ||
| 40 | `tarball`. Publish the tarball and md5sum. Create a news story on this site. | ||
| 41 | Link back to here from the tarball release. | ||
| 42 | |||
| 43 | [libsmi]: http://www.ibr.cs.tu-bs.de/projects/libsmi/ "libsmi" | ||
| 44 | |||
| 45 | <!--% # vim:set filetype=markdown textwidth=78 joinspaces: # %--> | ||
