Debian Codegraph @

check_rbl/src/INSTALL

raw
1 Build and install check_rbl
2
3 Dependencies
4 ===========
5
6 check_rbl depends on several Perl modules:
7
8 * Capture::Tiny
9 * Data::Validate::Domain
10 * Data::Validate::IP
11 * IO::Select
12 * Monitoring::Plugin
13 * Monitoring::Plugin::Getopt
14 * Monitoring::Plugin::Threshold
15 * Net::DNS
16 * Net::IP
17 * Readonly
18 * Socket
19
20 Perl modules can be found on the "Comprehensive Perl Archive Network"
21 (CPAN). The "How to install CPAN modules" guide summarizes how these
22 can be installed
23
24 http://www.cpan.org/modules/INSTALL.html
25
26 On many systems Perl modules are also available as installation
27 packages (refer to your system documentation on how to install them).
28
29 The 'perl Makefile.PL' command (see below) will list the missing
30 packages the you will need to install.
31
32 Install to /usr/lib/nagios/plugins/contrib
33 ==========================================
34
35 In the source directory run:
36
37 perl Makefile.PL
38 make
39 make install
40
41 Install to a custom directory (CUSTOM_DIR)
42 =========================================
43
44 In the source directory run:
45
46 perl Makefile.PL INSTALLSITESCRIPT=CUSTOM_DIR
47 make
48 make install
49
50 You can override the INSTALLSCRIPT, INSTALLNBIN or INSTALLSITESCRIPT
51 variable depending on your perl installation.
52
53 The man page is installed to /usr/share/man/man1/check_rbl.1
54 you can customize the path by setting INSTALLMAN1DIR as follows
55
56 perl Makefile.PL INSTALLSCRIPT=CUSTOM_DIR INSTALLMAN1DIR=CUSTOM_MAN_DIR
57 make
58 make install
59
60 Manual installation
61 ===================
62
63 Substitute #!perl at the beginning of the script with the location of
64 your Perl interpreter and copy it to the desired location
65
66 Generate the man page with pod2man
67
68 pod2man check_rbl.pod > CUSTOM_MAN_FILE
69
70 Please report any bugs or feature requests through the
71 web interface at https://github.com/matteocorti/check_rbl/issues
72
73 Dependencies on Debian
74 ======================
75
76 apt-get install libdata-validate-ip-perl libdata-validate-domain-perl libnet-dns-perl libreadonly-perl libmonitoring-plugin-perl
77
78 Dependencies on Redhat
79 ======================
80
81 You can just install the nagios-plugins-check-rbl with DNF and the dependencies will be installed automatically
82
83 If yoi want to install the dependencies manually (tested on RHEL8, with repository `epel` and `codeready-builder-for-rhel-8-x86_64-rpms` enabled)
84
85 dnf install perl-Capture-Tiny perl-Data-Validate-IP perl-IO perl-Monitoring-Plugin perl-Net-DNS perl-Net-IP perl-Readonly perl-Socket
86
87 The perl library `Data::Validate::Domain` is not available (_yet_) as package, so you have to install it through CPAN.
88
89 Please check with '`perl -V`' the best value for PERL5LIB.
90
91 dnf install perl-Scope-Guard perl-Sub-Info perl-Module-Pluggable perl-Net-Domain-TLD perl-Test2-Suite perl-Term-Table perl-Test-Simple
92
93 export PERL5LIB=/usr/local/lib64/perl5
94 cpanm --verbose --install Data::Validate::Domain
95 unset PERL5LIB