summaryrefslogtreecommitdiffstats
path: root/web/input/doc/faq/use-perl-module.md
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-01-11 16:38:18 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-01-11 16:38:18 (GMT)
commit7b0fa5d642466e7cdd0d326658c3c06c27f8a1ec (patch)
tree1bd1fe366d4063f29ed6930b0750c6bd7a72b7e9 /web/input/doc/faq/use-perl-module.md
parent16bf58546355690e0d9cf4e7d181255aac73b5c6 (diff)
downloadsite-7b0fa5d642466e7cdd0d326658c3c06c27f8a1ec.tar.gz
Import most FAQ items from old web site
Import most of the FAQ entries from our old web site. A few outdated questions have been omitted, many of the imported ones were updated in one way or another, and the order of the development-related questions has been changed. Also, the phrasing of some questions has been modified (just to make the headings shorter). For the record, this is the original list of questions from the old web site: General ------- * Who controls the Nagios Plugins project? * What license is Nagios Plugins distributed under? * Who owns the copyright for the Nagios Plugin code? * Can I submit a patch to this project? * Do you accept donations? Compiling --------- * ./configure appears to hang * check_ldap, check_radius or check_pgsql don't compile even though configure output says the required libraries are present * How come check_http/check_tcp doesn't work with --ssl? * How do I compile the Nagios::Plugin perl module? * I can't compile check_mysql on solaris * I get '":types" is not exported by the Params::Validate module' when running tests * Why does Solaris use pst3 for check_procs? Installing ---------- * Some of the root plugins (check_dhcp and check_icmp) haven't been installed. What's happening? * Why aren't my plugins installed as the nagios user? And what about root plugins? Development ----------- * How do I use Git? * Can I add extra tests to the C routines? * Can I use the Nagios Plugins in my own project? * How can I find out more about writing a plugin? * How do I make changes on nagiosmib? * How do I prove the C routines work? * How do I use and update Gnulib? * How do I use the Nagios::Plugin perl module? * How do the test parameters in NPTest.pm work? * Private C APIs
Diffstat (limited to 'web/input/doc/faq/use-perl-module.md')
-rw-r--r--web/input/doc/faq/use-perl-module.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/web/input/doc/faq/use-perl-module.md b/web/input/doc/faq/use-perl-module.md
new file mode 100644
index 0000000..64ba18a
--- /dev/null
+++ b/web/input/doc/faq/use-perl-module.md
@@ -0,0 +1,37 @@
1title: Using Nagios::Plugin
2parent: FAQ
3---
4
5# How do I use the Nagios::Plugin module?
6
7The Nagios::Plugin Perl module can be obtained from two main locations:
8
9* from the Nagios Plugins tarball with an
10 [extra configure option][configure-module]
11* from [CPAN][cpan-module]
12
13If you install from the Nagios Plugins tarball, the Perl module will be
14installed in `$prefix/perl`.
15
16If you install from CPAN, the Perl module will be installed into your Perl's
17system directories by default.
18
19To write your plugin, you should start it with:
20
21 use FindBin;
22 use lib "$FindBin::Bin/../perl/lib";
23 use Nagios::Plugin;
24
25This bit of code tells Perl to look for the Nagios::Plugin module in a
26directory relative to where the plugin is executed - this is a hard
27dependency. If Nagios::Plugin is not found there, Perl's system directories
28will be searched.
29
30This approach allows a system administrator to decide whether they want
31Nagios::Plugin installed via system directories or within the `$prefix` area
32of the plugins.
33
34[configure-module]: doc/faq/build-perl-module.html "configure with Nagios::Plugin"
35[cpan-module]: http://search.cpan.org/dist/Nagios-Plugin/ "Nagios::Plugin on CPAN"
36
37<!--% # vim:set filetype=markdown textwidth=78 joinspaces: # %-->