Project

General

Profile

Install jmx4perl » History » Version 4

chin-yeh, 09/08/2010 04:00 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
*Installation Steps*:
12 3 chin-yeh
# Download the source files from "Jmx4Perl":http://search.cpan.org/CPAN/authors/id/R/RO/ROLAND/jmx4perl-0.71.tar.gz
13
# Extract the downloaded file:
14
<pre>
15
# tar -xvzf jmx4perl-0.71.tar.gz
16
</pre>
17 1 chin-yeh
# @cd@ to the directory
18 3 chin-yeh
<pre>
19 1 chin-yeh
# cd jmx4perl-0.71
20
</pre>
21 4 chin-yeh
# @make@ and @install@ the package by execute the following commands:
22 1 chin-yeh
<pre>
23 4 chin-yeh
# perl Build.pl
24
# ./Build
25
# ./Build test
26
# ./Build install
27
</pre>
28
# soft link the @check_jmx4perl@
29
<pre>
30 2 chin-yeh
$ cd /usr/local/nagios/libexec
31
$ ln -s /usr/bin/check_jmx4perl .
32
</pre>
33 4 chin-yeh
# _Optional Step_: deploy the @jmx4perl-0.71/agent/j4p.war@ to the target monitor JEE server, e.g. Jboss.