Install jmx4perl » History » Revision 6
Revision 5 (chin-yeh, 09/08/2010 04:51 PM) → Revision 6/7 (chin-yeh, 09/08/2010 04:52 PM)
h1. Install jmx4perl
Official website: http://search.cpan.org/~roland/jmx4perl/
*Important note 1*: This addon have to be installed on the machine which hosting Nagios.
*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:
<pre>
perl -MCPAN -e 'install xxx::xxx'
</pre>
h2. Installation Steps:
# Download the source files from "Jmx4Perl":http://search.cpan.org/CPAN/authors/id/R/RO/ROLAND/jmx4perl-0.71.tar.gz
# Extract the downloaded file:
<pre>
# tar -xvzf jmx4perl-0.71.tar.gz
</pre>
# @cd@ to the directory
<pre>
# cd jmx4perl-0.71
</pre>
# @make@ and @install@ the package by execute the following commands:
<pre>
# perl Build.pl
# ./Build
# ./Build test
# ./Build install
</pre>
# soft link the @check_jmx4perl@
<pre>
$ cd /usr/local/nagios/libexec
$ ln -s /usr/bin/check_jmx4perl .
</pre>
# _Optional Step_: deploy the @jmx4perl-0.71/agent/j4p.war@ to the target monitor JEE server, e.g. Jboss.