Install jmx4perl » History » Version 5
chin-yeh, 09/08/2010 04:51 PM
1 | 1 | chin-yeh | h1. Install jmx4perl |
---|---|---|---|
2 | |||
3 | 4 | chin-yeh | *Important note 1*: This addon have to be installed on the machine which hosting Nagios. |
4 | 1 | chin-yeh | |
5 | 4 | chin-yeh | *Important note 2*: This guide assumes that all of the required Perl module(s) are already installed. If not, you might execute the following commands to install those missing modules: |
6 | <pre> |
||
7 | perl -MCPAN -e 'install xxx::xxx' |
||
8 | </pre> |
||
9 | |||
10 | |||
11 | 5 | chin-yeh | h2. Installation Steps: |
12 | |||
13 | 3 | chin-yeh | # Download the source files from "Jmx4Perl":http://search.cpan.org/CPAN/authors/id/R/RO/ROLAND/jmx4perl-0.71.tar.gz |
14 | # Extract the downloaded file: |
||
15 | <pre> |
||
16 | # tar -xvzf jmx4perl-0.71.tar.gz |
||
17 | </pre> |
||
18 | 1 | chin-yeh | # @cd@ to the directory |
19 | 3 | chin-yeh | <pre> |
20 | 1 | chin-yeh | # cd jmx4perl-0.71 |
21 | </pre> |
||
22 | 4 | chin-yeh | # @make@ and @install@ the package by execute the following commands: |
23 | 1 | chin-yeh | <pre> |
24 | 4 | chin-yeh | # perl Build.pl |
25 | # ./Build |
||
26 | # ./Build test |
||
27 | # ./Build install |
||
28 | </pre> |
||
29 | # soft link the @check_jmx4perl@ |
||
30 | <pre> |
||
31 | 2 | chin-yeh | $ cd /usr/local/nagios/libexec |
32 | $ ln -s /usr/bin/check_jmx4perl . |
||
33 | </pre> |
||
34 | 4 | chin-yeh | # _Optional Step_: deploy the @jmx4perl-0.71/agent/j4p.war@ to the target monitor JEE server, e.g. Jboss. |