Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (47 sloc) 1.56 KB
Build and install check_cpu
Dependences
===========
check_cpu depends on several Perl modules:
* Carp
* File::Copy
* File::Temp
* English
* Getopt::Long
* Nagios::Plugin
* Nagios::Plugin::Threshold
* Pod::Usage
* version
Perl modules can be found on the "Comprehensive Perl Archive Network"
(CPAN). The "How to install CPAN modules" guide summarizes how these
can be installed
http://www.cpan.org/modules/INSTALL.html
On many systems Perl modules are also available as installation
packages (refer to your system documentation on how to install them).
The 'perl Makefile.PL' command (see below) will list the missing
packages the you will need to install.
Install to /usr/lib/nagios/plugins/contrib
==========================================
In the source directory run:
perl Makefile.PL
make
make install
Install to a custom directory (CUSTOM_DIR)
=========================================
In the source directory run:
perl Makefile.PL INSTALLSCRIPT=CUSTOM_DIR
make
make install
The man page is installed to /usr/share/man/man1/check_cpu.1
you can customize the path by setting INSTALLMAN1DIR as follows
perl Makefile.PL INSTALLSCRIPT=CUSTOM_DIR INSTALLMAN1DIR=CUSTOM_MAN_DIR
make
make install
Manual installation
===================
Substitute #!perl at the beginning of the script with the location of
your Perl interpreter and copy it to the desired location
Generate the man page with pod2man
pod2man check_cpu > CUSTOM_MAN_FILE
Support
=======
Please open a ticket at https://github.com/matteocorti/check_cpu/issues