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