diff options
Diffstat (limited to 'web/input/doc/faq/migration.md')
-rw-r--r-- | web/input/doc/faq/migration.md | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/web/input/doc/faq/migration.md b/web/input/doc/faq/migration.md new file mode 100644 index 0000000..3dfd566 --- /dev/null +++ b/web/input/doc/faq/migration.md | |||
@@ -0,0 +1,45 @@ | |||
1 | title: Migrating to Monitoring Plugins | ||
2 | parent: FAQ | ||
3 | --- | ||
4 | |||
5 | # How do I migrate to Monitoring Plugins? | ||
6 | |||
7 | If you installed the [Nagios Plugins][nagios-plugins] package in the past and | ||
8 | now plan to migrate to the Monitoring Plugins, you should check whether your | ||
9 | operating system vendor provides an official package. If no such package | ||
10 | exists, you might have to [install the Monitoring Plugins from | ||
11 | source][compiling]. | ||
12 | |||
13 | You must then make sure the new plugins are found by your monitoring | ||
14 | application. While the Nagios Plugins were usually installed into the | ||
15 | directory `/usr/local/nagios/libexec` when built from the source tarball, the | ||
16 | Monitoring Plugins are by default installed to `/usr/local/libexec`. You can | ||
17 | change this by specifying the `--prefix` option when calling the `./configure` | ||
18 | script. For example, the following commands would install the Monitoring | ||
19 | Plugins into the old location: | ||
20 | |||
21 | $ ./configure --prefix=/usr/local/nagios | ||
22 | $ make | ||
23 | $ su root -c 'make install' | ||
24 | |||
25 | If you prefer the new location (`/usr/local/libexec`), you must adjust your | ||
26 | monitoring application's configuration instead. The details obviously depend | ||
27 | on the software you're using. In typical [Nagios][nagios], [Naemon][naemon], | ||
28 | and [Icinga 1][icinga-1] setups, the path to the plugins can be modified by | ||
29 | adjusting the `$USER1$` macro in the `resource_file` (often named | ||
30 | `resource.cfg`). With [Icinga 2][icinga-2], you probably want to set the path | ||
31 | in in your `constants.conf` file, e.g.: | ||
32 | |||
33 | const PluginDir = "/usr/local/libexec" | ||
34 | |||
35 | If you run into any trouble, please don't hesitate to [contact us][support]! | ||
36 | |||
37 | [nagios-plugins]: http://www.nagios-plugins.org/ "Nagios Plugins" | ||
38 | [compiling]: doc/faq/compilation.html "Compiling the Monitoring Plugins" | ||
39 | [icinga-1]: https://www.icinga.org/icinga-1/ "Icinga 1" | ||
40 | [icinga-2]: https://www.icinga.org/icinga2/ "Icinga 2" | ||
41 | [naemon]: http://naemon.github.io/ "Naemon" | ||
42 | [nagios]: http://www.nagios.org/ "Nagios" | ||
43 | [support]: support.html "Monitoring Plugins Support" | ||
44 | |||
45 | <!--% # vim:set filetype=markdown textwidth=78 joinspaces expandtab: # %--> | ||